shadowmapping #2
2 changed files with 4 additions and 0 deletions
|
@ -159,6 +159,9 @@ static void draw(void) {
|
|||
|
||||
deplacement += (float)(0.4 * M_PI * dt);
|
||||
glUseProgram(0);
|
||||
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
glDisable(GL_CULL_FACE);
|
||||
}
|
||||
|
||||
static void deinit(void) {
|
||||
|
|
|
@ -104,6 +104,7 @@ static void draw(void) {
|
|||
|
||||
glUseProgram(0);
|
||||
glBindTexture(GL_TEXTURE_2D, 0);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
}
|
||||
|
||||
static void deinit(void) {
|
||||
|
|
Reference in a new issue