mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
Very transparent parts of textures were cutted away while rendering. It turned out there is only a need to do this for shadows and selection rendering, not for real rendering.
This commit is contained in:
parent
69a0ae3c6b
commit
87f855b419
@ -5124,8 +5124,9 @@ 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
|
||||||
glAlphaFunc(GL_GREATER, 0.4f);
|
//glEnable(GL_COLOR_MATERIAL);
|
||||||
|
//glAlphaFunc(GL_GREATER, 0.4f);
|
||||||
}
|
}
|
||||||
|
|
||||||
//render
|
//render
|
||||||
|
Loading…
x
Reference in New Issue
Block a user