- set up the texture matrix.

This commit is contained in:
Christoph Oelckers 2019-10-10 19:46:46 +02:00
parent 1407c18f8b
commit 179076c4b1
2 changed files with 8 additions and 3 deletions

View file

@ -165,9 +165,15 @@ bool PolymostShader::Load(const char * name, const char * vert_prog, const char
GlowMatrix.Init(hShader, "u_glowMatrix");
TextureMatrix.Init(hShader, "u_textureMatrix");
glUseProgram(hShader);
VSMatrix identity(0);
TextureMatrix.Set(identity.get());
DetailMatrix.Set(identity.get());
GlowMatrix.Set(identity.get());
int SamplerLoc;
SamplerLoc = glGetUniformLocation(hShader, "s_texture");
glUniform1i(SamplerLoc, 0);