GRIM: Actors and billboards should not share the same shader uniforms

Fixes Manny's smoke idle animation
This commit is contained in:
Bastien Bouclet 2015-03-23 23:24:28 +01:00
parent 736a075cf3
commit 1908a43d18

View File

@ -376,7 +376,7 @@ void GfxOpenGLS::setupShaders() {
static const char* actorAttributes[] = {"position", "texcoord", "color", "normal", NULL};
_actorProgram = Graphics::Shader::fromFiles(isEMI ? "emi_actor" : "grim_actor", actorAttributes);
_spriteProgram = _actorProgram->clone();
_spriteProgram = Graphics::Shader::fromFiles(isEMI ? "emi_actor" : "grim_actor", actorAttributes);
static const char* primAttributes[] = { "position", NULL };
_shadowPlaneProgram = Graphics::Shader::fromFiles("shadowplane", primAttributes);