Merge pull request #11958 from hi-ogawa/fix-shadow-map-front-face

Fix front face definition
This commit is contained in:
Gilles Roudiere 2017-10-11 11:02:43 +02:00 committed by GitHub
commit 45c878e380

View file

@ -2142,7 +2142,6 @@ void RasterizerSceneGLES3::_render_list(RenderList::Element **p_elements, int p_
first = false;
}
glFrontFace(GL_CW);
glBindVertexArray(0);
state.scene_shader.set_conditional(SceneShaderGLES3::USE_INSTANCING, false);
@ -5026,6 +5025,8 @@ void RasterizerSceneGLES3::initialize() {
}
state.debug_draw = VS::VIEWPORT_DEBUG_DRAW_DISABLED;
glFrontFace(GL_CW);
}
void RasterizerSceneGLES3::iteration() {