Difference between revisions of "User:T L T"
From Bo3b's School for Shaderhackers
| Line 1: | Line 1: | ||
| − | Lesson 0 | + | ==Lesson 0== |
[[File:TheBall01 50T L T.jpg|700px]] | [[File:TheBall01 50T L T.jpg|700px]] | ||
| + | <br> | ||
| − | Lesson 0.5 | + | ==Lesson 0.5== |
[[File:TheBall02 T L T.jpg|700px]] | [[File:TheBall02 T L T.jpg|700px]] | ||
| + | |||
| + | <br> | ||
| + | |||
| + | ==Lesson 1== | ||
| + | |||
| + | <nowiki>// | ||
| + | // 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) | ||
| + | </nowiki> | ||
Revision as of 01:13, 18 September 2015
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)