Light: Support for specularmap

The specular map is embedded in the alpha component of texture.
Alpha value of 1. means no specular, alpha of 0. means 100% specular.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14786 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
vincentlj
2013-12-25 20:19:18 +00:00
parent 4435ffbaa0
commit ec3fd4fa13
9 changed files with 21 additions and 6 deletions

View File

@@ -348,6 +348,8 @@ void LightBlendProvider::OnSetConstants(IMaterialRendererServices *srv, int)
srv->setVertexShaderConstant("specular", &tex, 1);
tex = 2;
srv->setVertexShaderConstant("ambient_occlusion", &tex, 1);
tex = 3;
srv->setVertexShaderConstant("specular_map", &tex, 1);
}
//-------------------------------------