Separate Diffuse and Specular components

This allows to bypass alpha test, and have colored specular lights.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14777 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj
2013-12-24 20:51:53 +00:00
parent 5f23483bd9
commit 65b32757f3
5 changed files with 23 additions and 14 deletions

View File

@@ -343,8 +343,10 @@ void LightBlendProvider::OnSetConstants(IMaterialRendererServices *srv, int)
srv->setVertexShaderConstant("ambient", ambient, 3);
int tex = 0;
srv->setVertexShaderConstant("diffuse_and_spec", &tex, 1);
srv->setVertexShaderConstant("diffuse", &tex, 1);
tex = 1;
srv->setVertexShaderConstant("specular", &tex, 1);
tex = 2;
srv->setVertexShaderConstant("ambient_occlusion", &tex, 1);
}