looks like glEnable(GL_COLOR_MATERIAL); was still needed to render units properly
This commit is contained in:
parent
cf90ef9f3d
commit
9249d6370c
|
@ -5107,8 +5107,8 @@ void Renderer::renderUnits(const int renderFps) {
|
||||||
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, Vec4f(1.0f, 1.0f, 1.0f, alpha).ptr());
|
glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, Vec4f(1.0f, 1.0f, 1.0f, alpha).ptr());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
glEnable(GL_COLOR_MATERIAL);
|
||||||
//this only needs to be done in render fast for selection and shadow calculation. No need to do this in real render
|
//this only needs to be done in render fast for selection and shadow calculation. No need to do this in real render
|
||||||
//glEnable(GL_COLOR_MATERIAL);
|
|
||||||
//glAlphaFunc(GL_GREATER, 0.4f);
|
//glAlphaFunc(GL_GREATER, 0.4f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue