- Timestamp:
- 12/06/06 12:56:11 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/programs/MetalTeapot.hlsl
r1854 r1859 37 37 38 38 39 bool overshoot = false, undershoot = true;39 bool overshoot = false, undershoot = false; 40 40 float dp, dl = 0, ppp, llp; 41 41 float lR = readDistanceCubeMap(mp, R); … … 53 53 ppp = length(p) / dist; 54 54 */ 55 t = 0;56 57 while(t < 1.0 && !overshoot)55 t = dt; 56 57 while(t <= 1.0 && !overshoot) 58 58 { 59 59 dp = a * t / (1 - t); … … 75 75 } 76 76 } 77 else 77 else 78 78 undershoot = false; 79 79 … … 81 81 } 82 82 83 if(t >= 1.0 && undershoot && dist)84 overshoot = true;83 //if(t >= 1.0 && undershoot && dist) 84 // overshoot = true; 85 85 86 86 if(overshoot) … … 249 249 float d1 = Hit(mPos, R, NormDistMap1, newDir1); 250 250 float3 normal1 = readCubeMap(NormDistMap1, newDir1); 251 bool valid1 = dot(normal1, R) < 0 &&dot(newDir1,newDir1) != 0;251 bool valid1 = /*dot(normal1, R) < 0 &&*/ dot(newDir1,newDir1) != 0; 252 252 if(valid1) 253 253 newDir1 = 0; … … 255 255 float d2 = Hit(mPos, R, NormDistMap2, newDir2); 256 256 float3 normal2 = readCubeMap(NormDistMap2, newDir2); 257 bool valid2 = dot(normal2, R) < 0 &&dot(newDir2,newDir2) != 0;257 bool valid2 = /*dot(normal2, R) < 0 &&*/ dot(newDir2,newDir2) != 0; 258 258 if(valid2) 259 259 newDir2 = 0; -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/scripts/MetalTeapot.material
r1854 r1859 119 119 fragment_program MetalMultipleBouncePS hlsl 120 120 { 121 source MetalTeapot.hlsl 122 entry_point MetalMultipleBouncePS 121 //source MetalTeapot.hlsl 122 //entry_point MetalMultipleBouncePS 123 source MetalTeapotNew.hlsl 124 entry_point mainPS 125 123 126 target ps_3_0 124 127 flow_control prefer
Note: See TracChangeset
for help on using the changeset viewer.