GRIM: SHADERS: Pass light parameters to actor vertex shader.
They contain (pen)umbra angles for spotlights.
This commit is contained in:
parent
c7faaff3a5
commit
25af91b4a8
2 changed files with 3 additions and 4 deletions
|
@ -779,10 +779,8 @@ void GfxOpenGLS::startActorDraw(const Actor *actor) {
|
|||
uniform = Common::String::format("lights[%u]._color", i);
|
||||
_actorProgram->setUniform(uniform.c_str(), l._color);
|
||||
|
||||
if (g_grim->getGameType() == GType_MONKEY4) {
|
||||
uniform = Common::String::format("lights[%u]._params", i);
|
||||
_actorProgram->setUniform(uniform.c_str(), l._params);
|
||||
}
|
||||
uniform = Common::String::format("lights[%u]._params", i);
|
||||
_actorProgram->setUniform(uniform.c_str(), l._params);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue