- Timestamp:
- 10/19/08 00:29:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/shaders/sky_preetham.cg
r3040 r3041 1 //--------------------------------------------------------------------------------------2 // Input and Output structs3 //--------------------------------------------------------------------------------------4 5 6 7 1 struct vtxin 8 2 { … … 17 11 struct vtxout 18 12 { 19 float4 position: POSITION; // eye space 13 float4 color: COLOR0; 14 float4 position: POSITION; 15 20 16 float4 texCoord: TEXCOORD0; 21 22 float4 color: COLOR0; 23 float4 worldPos: TEXCOORD1; // world position 24 float3 normal: TEXCOORD2; 25 float4 mypos: TEXCOORD3; 26 float4 hdrColor: TEXCOORD4; 17 float3 normal: TEXCOORD1; 18 float4 hdrColor: TEXCOORD2; 27 19 }; 28 20 … … 32 24 { 33 25 float4 color: COLOR0; 34 float4 position: POSITION; // eye space 26 //float4 projPos: WPOS; 27 //float4 position: POSITION; 28 35 29 float4 texCoord: TEXCOORD0; 36 37 float4 projPos: WPOS; 38 float3 normal: TEXCOORD2; 39 float4 hdrColor: TEXCOORD4; 30 float3 normal: TEXCOORD1; 31 float4 hdrColor: TEXCOORD2; 40 32 }; 41 33 42 34 43 struct fragout35 struct pixel 44 36 { 45 37 float4 col: COLOR0; 46 float 4norm: COLOR1;38 float3 norm: COLOR1; 47 39 float3 pos: COLOR2; 48 40 }; … … 104 96 105 97 106 fragoutfrag_skydome(fragin IN)98 pixel frag_skydome(fragin IN) 107 99 { 108 fragoutpix;100 pixel pix; 109 101 110 102 pix.col = IN.hdrColor;
Note: See TracChangeset
for help on using the changeset viewer.