mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 18:21:06 +00:00
- set up the texture matrix.
This commit is contained in:
parent
1407c18f8b
commit
179076c4b1
2 changed files with 8 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue