From: <wel...@us...> - 2012-01-23 11:24:17
|
Revision: 8032 http://planeshift.svn.sourceforge.net/planeshift/?rev=8032&view=rev Author: weltall2 Date: 2012-01-23 11:24:08 +0000 (Mon, 23 Jan 2012) Log Message: ----------- other things missing Modified Paths: -------------- trunk/data/shader-snippets/surface/surface-snow.xml Modified: trunk/data/shader-snippets/surface/surface-snow.xml =================================================================== --- trunk/data/shader-snippets/surface/surface-snow.xml 2012-01-23 11:22:52 UTC (rev 8031) +++ trunk/data/shader-snippets/surface/surface-snow.xml 2012-01-23 11:24:08 UTC (rev 8032) @@ -111,7 +111,7 @@ <block location="glsl:fragmentMain"> <?if vars."snow density" ?> - vec4 snowColor = texture2D (texSnow1, texCoord/2); + vec4 snowColor = texture2D (texSnow1, texCoord/2.0f); vec3 normals = normalize(normal); vec2 snow = vec2(clamp(normals.y, 0.0f, 1.0f)); @@ -120,7 +120,7 @@ snow.y = step(0.4f, snow.y) * 0.3f; //the place for the snow coverage. - float snowplace = clamp(dot(snow, float2(2.0f)), 0.0f, 1.0f); + float snowplace = clamp(dot(snow, vec2(2.0f)), 0.0f, 1.0f); result.rgb = mix(diffuse.rgb, snowColor.rgb, snowplace*snowDensity); result.a = diffuse.a; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |