Skip to content

Commit

Permalink
Fixed wrong parameter for ParticleShader
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Nov 20, 2018
1 parent 44fed20 commit 2b57efc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dagon/graphics/shaders/particle.d
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ class ParticleShader: Shader
}
else
{
setParameter("normalVector", inormal.asVector4f);
Vector3f nVec = inormal.asVector3f;
setParameter("normalVector", nVec);
setParameterSubroutine("normal", ShaderType.Fragment, "normalValue");
}
}
Expand Down

0 comments on commit 2b57efc

Please sign in to comment.