User:T L T
From Bo3b's School for Shaderhackers
Contents
Lesson 0
Lesson 0.5
Lesson 1
// // Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022 // // Parameters: // // float4 TextureComponentReplicateAlpha; // sampler2D _Texture; // // // Registers: // // Name Reg Size // ------------------------------ ----- ---- // TextureComponentReplicateAlpha c0 1 // _Texture s0 1 // ps_3_0 dcl_texcoord v0.xy dcl_texcoord1 v1 dcl_2d s0 texld r0, v0, s0 dp4 r0.w, r0, c0 mul oC0, r0, v1 // approximately 3 instruction slots used (1 texture, 2 arithmetic)
Lesson 2
Before
After