Changeset 2188 for GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMap.hlsl
- Timestamp:
- 03/05/07 18:04:13 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMap.hlsl
r2186 r2188 1 1 uniform float4x4 WorldViewProj; 2 uniform float2 prmAtlasTiles; 3 uniform float2 atlasHalfPixel; 2 uniform float4 prmAtlasTilesHalfPixel; 4 3 uniform sampler2D filteredAtlasSampler : register(s0); 4 uniform float weights[32]; 5 5 6 6 struct vsInputWalk … … 30 30 float4 psWalk(vsOutputWalk input) : COLOR 31 31 { 32 /* float3 col = 0; 32 int2 prmAtlasTiles = prmAtlasTilesHalfPixel.xy; 33 float2 atlasHalfPixel = prmAtlasTilesHalfPixel.zw; 34 35 float3 col = 0; 33 36 for(int iCluster=0; iCluster<16; iCluster++) 34 37 { … … 56 59 col += val.xyz * weight.w; 57 60 } 58 */ 59 float ff = (float)prmAtlasTiles.x; 60 return float4( float3(ff,ff,ff) / 128.0/* + col*0.000000001*/, 1); 61 62 //return col.xxxx *0.00001 + tex2D(filteredAtlasSampler, float2(input.texAtlas.x /32.0f, 1.0 - input.texAtlas.y)); 63 //return float4(1,0,0,1)+col.xxxx*0.0000000001; 64 return float4(col, 1); 61 65 } 62 66
Note: See TracChangeset
for help on using the changeset viewer.