User:Pirateguybrush
From Bo3b's School for Shaderhackers
Revision as of 06:08, 31 August 2014 by Pirateguybrush (Talk | contribs)
Lesson 0
Lesson 1
// // Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022 // // Parameters: // // float4 IndividualVelocityScale; // // // Registers: // // Name Reg Size // ----------------------- ----- ---- // IndividualVelocityScale c0 1 // // // Default values: // // IndividualVelocityScale // c0 = { 1, 1, 0.00392157, 1 }; // ps_3_0 def c1, 0.5, 0, 0, 0 dcl_texcoord6 v0.xyw dcl_texcoord7 v1.xyw rcp r0.x, v0.w mul r0.xy, r0.x, v0 rcp r0.z, v1.w mad_pp r0.xy, v1, r0.z, -r0 mul_pp r0.xy, r0, c0 mad_pp r0.xy, r0, c1.x, c1.x max_pp r1.xy, r0, c0.z min_pp oC0.xy, c0.w, r1 mov oC0.zw, c1.y // approximately 9 instruction slots used