Changeset 2266 for GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap
- Timestamp:
- 03/19/07 16:53:44 (18 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap/GTPEnvMap.hlsl
r2175 r2266 8 8 float readDistanceCubeMap(samplerCUBE dcm, float3 coord) 9 9 { 10 float dist = texCUBE(dcm, float3(coord.xy, - coord.z)). r;10 float dist = texCUBE(dcm, float3(coord.xy, - coord.z)).a; 11 11 if(dist == 0) dist = 1000; ///sky 12 12 return dist; … … 97 97 float3 R = reflect( V, N); 98 98 float3 T = refract(V, N, sRefraction); 99 99 100 100 RR = R; TT = T; 101 101 RR = Hit(cubePos, R, DistanceMap); … … 128 128 RR = R; 129 129 RR = Hit(cubePos, R, DistanceMap); 130 Color = readCubeMap(CubeMap, RR ); 130 Color = readCubeMap(CubeMap, RR); 131 //Color = readDistanceCubeMap(DistanceMap, cubePos)/300.0; 132 //return Color; 131 133 132 134 float ctheta_in = dot(N, R); -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPEnvMap/GTPEnvMap.material
r2175 r2266 74 74 texture_unit 75 75 { 76 76 filtering none 77 77 } 78 78 } … … 122 122 texture_unit 123 123 { 124 124 filtering none 125 125 } 126 126 } … … 130 130 material GTP/EnvMap/Localized_Metal 131 131 { 132 technique 132 technique maintechnique 133 133 { 134 134 pass mainpass … … 171 171 texture_unit 172 172 { 173 173 filtering none 174 174 } 175 175 } … … 179 179 material GTP/EnvMap/Gold : GTP/EnvMap/Localized_Metal 180 180 { 181 technique 181 technique maintechnique 182 182 { 183 183 pass mainpass … … 193 193 material GTP/EnvMap/Silver : GTP/EnvMap/Localized_Metal 194 194 { 195 technique 196 { 197 pass mainpass 198 { 199 fragment_program_ref 200 { 201 param_named F0 float3 0.97 0.95 0.9 202 } 195 technique maintechnique 196 { 197 pass mainpass 198 { 199 fragment_program_ref GTP/EnvMap/Localized_Metal_PS 200 { 201 202 param_named F0 float3 0.97 0.95 0.9 203 } 203 204 } 204 205 } … … 207 208 material GTP/EnvMap/Copper : GTP/EnvMap/Localized_Metal 208 209 { 209 technique 210 technique maintechnique 210 211 { 211 212 pass mainpass … … 221 222 material GTP/EnvMap/Alu : GTP/EnvMap/Localized_Metal 222 223 { 223 technique 224 technique maintechnique 224 225 { 225 226 pass mainpass
Note: See TracChangeset
for help on using the changeset viewer.