Changeset 2339 for GTP/trunk/App/Demos/Illum
- Timestamp:
- 04/24/07 18:09:28 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPPathMap/PathMap.hlsl
r2337 r2339 42 42 float2 prmTexPos = float2( 43 43 (input.texAtlas.x + (iCluster % prmAtlasTiles.x)) / prmAtlasTiles.x, 44 1.0 - (input.texAtlas.y + (iCluster / prmAtlasTiles.x)) / prmAtlasTiles.y) + atlasHalfPixel;44 1.0 - (input.texAtlas.y + (iCluster / prmAtlasTiles.x)) / prmAtlasTiles.y);// + atlasHalfPixel; 45 45 46 46 float weightIndex = tex2D(clusterWeightIndexSampler, float2(((float)iCluster + 0.5) / clusterCount, 0.5)).r; … … 55 55 float3 color = tex2D(colorSampler, input.tex).rgb; 56 56 57 return float4(col,1); 57 58 return float4(col * color, 1); 58 59
Note: See TracChangeset
for help on using the changeset viewer.