Changeset 2507 for GTP/trunk/App/Demos/Illum/Ogre/Media/Station
- Timestamp:
- 07/03/07 15:49:12 (17 years ago)
- Location:
- GTP/trunk/App/Demos/Illum/Ogre/Media/Station
- Files:
-
- 3 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
Note: See TracChangeset
for help on using the changeset viewer.