• ASM shader questions
    2 replies, posted
I've been messing around with source shaders and i've managed to decompile some, But they all turn out in assembly PS: [CODE] ps_2_x def c0, 0.0900000036, 1, 0, 0 dcl t1 dcl t2 dcl t3.xyz dcl t4 dcl t5.xyz dcl_2d s0 dcl_2d s1 dcl_2d s2 rcp r0.w, t5.z mul r0.xy, r0.w, t5 texld r1, r0, s2 texld r2, r0, s1 texld r0, r0, s0 add r1.xyz, -r1, t3 dp3 r0.w, r1, r1 rsq r0.w, r0.w mul r1.xyz, r0.w, r1 rcp r0.w, r0.w mul r0.xyz, r0, t1 dp3 r1.w, r1, r2 dp3 r1.x, r1, -t2 max r2.x, r1.w, c0.z add r1.y, r1.x, -t1.w add r1.x, -r1.x, t2.w mov r1.w, t2.w add r1.z, r1.w, -t1.w rcp r1.z, r1.z mad r1.z, -r1.y, r1.z, c0.y cmp r1.y, r1.y, c0.y, r1.z mul r1.y, r1.y, r2.x mul r2.xyz, r0, c0.x mad r3.xyz, r1.y, r0, r2 mul r0.x, r0.w, r0.w mul r0.y, r0.w, t4.y mad r0.x, r0.x, t4.x, r0.y add r0.x, r0.x, t4.z rcp r0.x, r0.x mul r3.w, r0.x, t4.w min r2.w, r3.w, c0.y cmp r0, r1.x, r2, r3 mul r0.xyz, r0.w, r0 mov r0.w, c0.y mov oC0, r0 [/CODE] VS: [CODE] vs_2_0 def c1, 0.5, -0.5, 0, 1 dcl_position v0 dcl_texcoord v1 dcl_texcoord1 v2 dcl_texcoord2 v3 dcl_texcoord3 v4 dcl_texcoord4 v5 dcl_texcoord5 v6 mad oPos, v0.xyzx, c0.yyyx, c0.xxxy mov oT0.xy, v1 mov oT1, v2 mov oT2, v3 mov oT3.xyz, v4 mov oT4, v5 mad oT5.xyz, v0.xyxw, c1, c1.xxww mov oT6.xyz, v6 [/CODE] I have 0 understanding of assembly, So my questions are... [B]1.[/B] Is there ASM Shader to HLSL converter? [B]2[/B]. Is there more software that can decompile .VCS or .FXC? [B]3[/B]. Can it be compiled back into .VCS or .FXC? [B]4[/B]. Can it be compiled in HLSLEditor? And yes i've googled and found old forums, broken links, and offtopic results :/ Thank you for your time :)
You'll probably have better luck looking at: [url]https://github.com/ValveSoftware/source-sdk-2013/tree/master/mp/src/materialsystem/stdshaders[/url] [url]https://github.com/jonathonracz/alienswarm-sdk-src/tree/master/materialsystem/stdshaders[/url]
[QUOTE=ben1066;52644393]You'll probably have better luck looking at: [url]https://github.com/ValveSoftware/source-sdk-2013/tree/master/mp/src/materialsystem/stdshaders[/url] [url]https://github.com/jonathonracz/alienswarm-sdk-src/tree/master/materialsystem/stdshaders[/url][/QUOTE] I think that just answered all my questions. Thank you so much :D
Sorry, you need to Log In to post a reply to this thread.