mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 17:54:00 +02:00
Enable back face culling on the opaque parts of avatars.
This commit is contained in:
parent
bab74e9cd4
commit
ffe3717573
1 changed files with 2 additions and 2 deletions
|
@ -328,6 +328,8 @@ bool Model::render(float alpha) {
|
|||
|
||||
glDisable(GL_COLOR_MATERIAL);
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
|
||||
// render opaque meshes with alpha testing
|
||||
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
|
@ -339,8 +341,6 @@ bool Model::render(float alpha) {
|
|||
|
||||
// render translucent meshes afterwards, with back face culling
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
|
||||
renderMeshes(alpha, true);
|
||||
|
||||
glDisable(GL_CULL_FACE);
|
||||
|
|
Loading…
Reference in a new issue