Light: Export the correct value for specmap in grass/splatting shaders

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14789 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj 2013-12-25 20:48:27 +00:00
parent 3a6e75b656
commit c2b18a0a1c
2 changed files with 2 additions and 2 deletions

View File

@ -9,5 +9,5 @@ void main()
{
gl_FragData[0] = texture2D(tex, gl_TexCoord[0].st);
gl_FragData[1] = vec4(0.5 * normalize(nor) + 0.5, gl_FragCoord.z);
gl_FragData[2] = vec4(1.);
gl_FragData[2] = vec4(0.);
}

View File

@ -28,5 +28,5 @@ void main() {
gl_FragData[0] = vec4(splatted.xyz, 1.);
gl_FragData[1] = vec4(normalize(nor) * 0.5 + 0.5, gl_FragCoord.z);
gl_FragData[2] = vec4(splatted.a);
gl_FragData[2] = vec4(1. - splatted.a);
}