diff --git a/engines/grim/gfx_opengl_shaders.cpp b/engines/grim/gfx_opengl_shaders.cpp index c1294e5e4d6..6ae888efc5c 100644 --- a/engines/grim/gfx_opengl_shaders.cpp +++ b/engines/grim/gfx_opengl_shaders.cpp @@ -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); } } } diff --git a/engines/grim/shaders/grim_actor.vertex b/engines/grim/shaders/grim_actor.vertex index eb211d5027a..b314d5e10cd 100644 --- a/engines/grim/shaders/grim_actor.vertex +++ b/engines/grim/shaders/grim_actor.vertex @@ -17,6 +17,7 @@ struct Light { vec4 _position; vec4 _direction; vec4 _color; + vec4 _params; }; const int maxLights = 8; uniform Light lights[maxLights];