Difference between revisions of "User:T L T"

From Bo3b's School for Shaderhackers
Jump to: navigation, search
Line 40: Line 40:
 
// approximately 3 instruction slots used (1 texture, 2 arithmetic)
 
// approximately 3 instruction slots used (1 texture, 2 arithmetic)
 
</nowiki>
 
</nowiki>
 +
 +
<br>
 +
 +
==Lesson 2==
 +
 +
Before
 +
 +
[[File:TheBall03.jpg|700px]]
 +
 +
 +
After
 +
 +
[[File:TheBall04.jpg|700px]]

Revision as of 03:47, 21 September 2015

Lesson 0

TheBall01 50T L T.jpg


Lesson 0.5

TheBall02 T L T.jpg


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

TheBall03.jpg


After

TheBall04.jpg