Difference between revisions of "User:Silentbob666"
From Bo3b's School for Shaderhackers
Silentbob666 (Talk | contribs) |
Silentbob666 (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 85: | Line 85: | ||
</nowiki> | </nowiki> | ||
+ | |||
+ | <BR> | ||
+ | |||
+ | == Lesson 2 == | ||
+ | Before: [[File: TheBall02 50.jpg|700px]] | ||
+ | |||
+ | After: [[File: TheBall03 50.jpg|700px]] |
Latest revision as of 07:02, 25 March 2016
Lesson 0
Lesson 1
// // Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022 // // Parameters: // // float BloomScale; // float4 MinMaxBlurClamp; // float4 MinZ_MaxZRatio; // float4 PackedParameters; // sampler2D SmallSceneColorTexture; // // // Registers: // // Name Reg Size // ---------------------- ----- ---- // BloomScale c0 1 // MinZ_MaxZRatio c2 1 // PackedParameters c4 1 // MinMaxBlurClamp c5 1 // SmallSceneColorTexture s0 1 // ps_3_0 def c1, -1, 0.5, 0.25, -9.99999997e-007 def c3, 0, 0, 0, 0 dcl_texcoord v0 dcl_texcoord1 v1 dcl_2d s0 texld_pp r0, v0.wzzw, s0 max_pp r1.x, r0.y, r0.z max_pp r2.x, r0.x, r1.x add_pp r1.x, r2.x, c1.x mul_sat_pp r1.x, r1.x, c1.y mul_pp r1.xyz, r0, r1.x texld_pp r2, v0, s0 max_pp r1.w, r2.y, r2.z max_pp r3.x, r2.x, r1.w add_pp r1.w, r3.x, c1.x mul_sat_pp r1.w, r1.w, c1.y mad_pp r1.xyz, r2, r1.w, r1 texld_pp r3, v1, s0 max_pp r1.w, r3.y, r3.z max_pp r4.x, r3.x, r1.w add_pp r1.w, r4.x, c1.x mul_sat_pp r1.w, r1.w, c1.y mad_pp r1.xyz, r3, r1.w, r1 texld_pp r4, v1.wzzw, s0 max_pp r1.w, r4.y, r4.z max_pp r5.x, r4.x, r1.w add_pp r1.w, r5.x, c1.x mul_sat_pp r1.w, r1.w, c1.y mad_pp r1.xyz, r4, r1.w, r1 mul_pp r1.xyz, r1, c0.x mul_pp r1.xyz, r1, c1.z mad r1.w, r2.w, c2.z, -c2.w rcp_pp r2.w, r1.w mad r1.w, r0.w, c2.z, -c2.w rcp_pp r0.w, r1.w add_pp r0, r0, r2 mad r1.w, r3.w, c2.z, -c2.w rcp_pp r3.w, r1.w add_pp r0, r0, r3 mad r1.w, r4.w, c2.z, -c2.w rcp_pp r4.w, r1.w add_pp r0, r0, r4 mov r2.z, c1.z mad_pp r0.w, r0.w, r2.z, -c4.x mul_pp r0.xyz, r0, c1.z cmp_pp r1.w, r0.w, c5.y, c5.x mul_sat_pp r0.w, r0_abs.w, c4.y add r2.x, r0.w, c1.w pow_pp r2.y, r0.w, c4.z cmp_pp r0.w, r2.x, r2.y, c3.x min_pp r2.w, r0.w, r1.w mad_pp r2.xyz, r2.w, r0, r1 mul oC0, r2, c1.z // approximately 50 instruction slots used (4 texture, 46 arithmetic)