Rev | Line | |
---|
[845] | 1 | struct VertexOut
|
---|
| 2 | {
|
---|
| 3 | float4 VertexPosition :POSITION;
|
---|
| 4 | float2 TexCoord :TEXCOORD;
|
---|
| 5 | };
|
---|
| 6 |
|
---|
| 7 |
|
---|
| 8 | /*
|
---|
| 9 | Vertex program for cloud rendering
|
---|
| 10 | */
|
---|
| 11 | VertexOut VertexProgram( float4 Position :POSITION,
|
---|
| 12 | float4 Texcoord: TEXCOORD,
|
---|
| 13 | uniform float4x4 ModelViewProj :state.matrix.mvp
|
---|
| 14 | )
|
---|
| 15 | {
|
---|
| 16 | VertexOut Out;
|
---|
| 17 |
|
---|
| 18 | Out.VertexPosition=mul(ModelViewProj, Position);
|
---|
| 19 | Out.TexCoord=Texcoord.xy;
|
---|
| 20 |
|
---|
| 21 | return Out;
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | /*
|
---|
| 25 | Fragment program for cloud rendering
|
---|
| 26 | */
|
---|
| 27 | float4 FragmentProgram( VertexOut In,
|
---|
| 28 | uniform sampler2D Texture):COLOR
|
---|
| 29 | {
|
---|
| 30 | float4 Color=float4(1,1,1,1);
|
---|
| 31 | Color.a=tex2D(Texture,In.TexCoord)*0.25;
|
---|
| 32 | return Color;
|
---|
| 33 | }
|
---|
| 34 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.