- Timestamp:
- 07/03/07 15:49:12 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/StationBase.hlsl
r2474 r2507 201 201 float4 diffuseColor = tex2D(colorTexture, IN.texCoord); 202 202 float4 obscurancescolor = tex2D(obscuranceTexture, IN.texCoord); 203 float4 combinedColor = diffuseColor * obscurancescolor; 203 //float4 combinedColor = diffuseColor * obscurancescolor; 204 float4 combinedColor = diffuseColor; 204 205 205 206 //---------------------------------------------------------------------------------------------------------------- … … 243 244 float4 indirect = PathMapIndirect(PathMap, WeightIndexMap, WeightMap, IN.texCoord); 244 245 indirect *= diffuseColor; 245 Color = Color + indirect; 246 Color = Color + indirect * 1.5; 247 //Color = Color + diffuseColor * 0.1; 246 248 247 249 if(causticReceiver) -
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/scientist.material
r2489 r2507 77 77 } 78 78 } 79 79 80 80 material scientist_body : scientist_base 81 81 { … … 149 149 150 150 151 152 153 154 155 156 157 151 material scientist_base1 152 { 153 technique main 154 { 155 pass direct 156 { 157 ambient 0 0 0 1 158 diffuse 0.3 0.3 0.3 1 159 specular 0 0 0 0 160 texture_unit color 161 { 162 163 164 } 165 } 166 } 167 } 168 169 material scientist_body1 : scientist_base 170 { 171 technique main 172 { 173 pass direct 174 { 175 texture_unit color 176 { 177 texture scientist_body.bmp 178 } 179 } 180 181 } 182 183 } 184 185 material scientist_glass1 : scientist_base 186 { 187 technique main 188 { 189 pass direct 190 { 191 texture_unit color 192 { 193 texture scientist_chrome.bmp 194 } 195 } 196 197 } 198 199 } 200 201 material scientist_head1 : scientist_base 202 { 203 technique main 204 { 205 pass direct 206 { 207 texture_unit color 208 { 209 texture scientist_head.bmp 210 } 211 } 212 213 } 214 215 } 216 217 218 219 220 221 222 223 224 225 -
GTP/trunk/App/Demos/Illum/Ogre/Media/Station/stationIllum.hlsl
r2474 r2507 15 15 L = normalize(L); 16 16 17 #ifdef HIGH_QUALITY17 //#ifdef HIGH_QUALITY 18 18 19 19 //Phong-Blinn … … 23 23 24 24 float lightAngleCos = cos(70.0 / 180.0 * 3.14); 25 float falloff = ( dot(-L, lightDir) - lightAngleCos) / (1.0 - lightAngleCos);25 float falloff = (max(dot(-L, lightDir), 0) - lightAngleCos) / (1.0 - lightAngleCos); 26 26 falloff = pow(saturate(falloff), 2); 27 27 … … 31 31 ; 32 32 33 #else33 //#else 34 34 35 return lightColor * diffuseColor * dot(L,N) * pow(max(dot(-L, lightDir),0),9) / (3*d*d);35 // return lightColor * diffuseColor * dot(L,N) * pow(max(dot(-L, lightDir),0),9) / (3*d*d); 36 36 37 #endif37 //#endif 38 38 } 39 39 -
GTP/trunk/App/Demos/Illum/Ogre/Media/Towers/towers.material
r2441 r2507 174 174 max_light_count 1 175 175 vertex_program_name GTP/Basic/LightVPos_VS 176 fragment_program_name GTP/Basic/SM/Depth_ PS176 fragment_program_name GTP/Basic/SM/Depth_VSM_PS 177 177 set_light_viewproj true 178 178 set_light_view false -
GTP/trunk/App/Demos/Illum/Ogre/Media/materials/GTPBasic/GTPShadowMap_PS.hlsl
r2442 r2507 12 12 }; 13 13 14 #define DEPTH_BIAS 0.0 0115 #define DEPTH_BIAS_VSM 0.00 116 #define DEPTH_EPSILON 0.0 514 #define DEPTH_BIAS 0.01 15 #define DEPTH_BIAS_VSM 0.00005 16 #define DEPTH_EPSILON 0.01 17 17 #define DIST_BIAS 0.005 18 18 #define DIST_BIAS_VSM 0.0005 … … 21 21 //#define shadowColor float4(0.95,0.95,0.95,1) 22 22 #define shadowColor float4(0.8,0.8,0.8,1) 23 //#define shadowColorfloat4(0.2,0.2,0.2,1)23 #define shadowColor2 float4(0.2,0.2,0.2,1) 24 24 //#define shadowColor float4(0.0,0.0,0.0,1) 25 25 … … 37 37 float storedDepth = abs(tex2D(shadowMap, pos.xy).r); 38 38 //light = (pos.z - storedDepth.r)*100.0; 39 light = max(storedDepth + DEPTH_BIAS > pos.z, shadowColor );39 light = max(storedDepth + DEPTH_BIAS > pos.z, shadowColor2); 40 40 } 41 41 return light; … … 70 70 light = 0; 71 71 72 return shadowColor + (1 - shadowColor) *light;72 return light; 73 73 74 74 }
Note: See TracChangeset
for help on using the changeset viewer.