Changeset 2213 for GTP/trunk/App/Demos/Illum/Ogre
- Timestamp:
- 03/08/07 17:19:43 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMap.hlsl
r2202 r2213 76 76 //return float4(1,0,0,1)+col.xxxx*0.0000000001; 77 77 //return prmAtlasTilesHalfPixel.x*allClusterCount*clusterCount*0.000000000001 + tex2D(filteredAtlasSampler, float2(input.texAtlas.x /32.0f, 1.0 - input.texAtlas.y)).r; 78 return float4(col , 1);78 return float4(col * 200, 1); 79 79 } 80 80 -
GTP/trunk/App/Demos/Illum/Ogre/Media/PMDemo/PathMapWeightCompute.hlsl
r2207 r2213 27 27 vsOutputComputeWeights output = (vsOutputComputeWeights)0; 28 28 output.pos = input.pos; 29 output.tex = input.tex;29 output.tex = (input.pos + 1.0) / 2.0; 30 30 output.tex.y = 1.0 - output.tex.y; 31 31 return output; 32 32 } 33 33 34 float4 35 psComputeWeights(vsOutputComputeWeights input) : COLOR0 34 float4 psComputeWeights(vsOutputComputeWeights input) : COLOR0 36 35 { 37 36 float dataColumnWidth = 1.0 / (float)nRadionColumns; … … 61 60 float visibility = 1; 62 61 63 float4 ret = cosa * cosb;62 float4 ret = pow(cosa, 9) * cosb / dist2; 64 63 65 float ize = 0;66 if(pos.z> 0) ize = 1;64 //float ize = 0; 65 //if(pos.y > 0) ize = 1; 67 66 //return float4(lightDir + ret.x * 0.00000000001, 1); 68 67 //return ret; 69 return ret .x*0.0000000001 + ize;68 return ret; 70 69 } 71 70 … … 88 87 //weight += tex2Dlod(allWeightsSampler, float4(coord1, 0, 0)).r * radrad; 89 88 weight += tex2Dlod(allWeightsSampler, float4(coord1, 0, 0)).r; 90 //clusterRad += radrad;89 clusterRad += radrad; 91 90 currentEntryPoint++; 92 91 } 93 /*94 if(clusterRad >= 0)92 93 /*if(clusterRad >= 0) 95 94 weight /= clusterRad; 96 95 else 97 96 weight = 0;*/ 98 97 99 98 weight /= (float) entryPointCount; 100 99 … … 116 115 { 117 116 //return texCoord.y; 118 return tex 2D(weightTexture, texCoord).r;117 return texCoord.r; 119 118 } 120 119
Note: See TracChangeset
for help on using the changeset viewer.