Hello
Guest
Register
Login
1 Hour
1 Day
1 Week
1 Month
Forever
LWJGL 3.3.2 released
Menu
Home
Help
Search
Login
Register
go
LWJGL Forum
Programming
OpenGL
The backface of quads are rendered
« previous
next »
Print
Pages: [
1
]
The backface of quads are rendered
3 Replies
3353 Views
Mihai_Ionut_Floares
43
The backface of quads are rendered
«
on:
December 07, 2020, 01:16:33 »
https://streamable.com/mielrx
Why is rendered the inside of the cube?
Logged
KaiHH
334
Re: The backface of quads are rendered
«
Reply #1 on:
December 07, 2020, 09:03:22 »
Have you enabled backface culling, then?
https://learnopengl.com/Advanced-OpenGL/Face-culling
Logged
Mihai_Ionut_Floares
43
Re: The backface of quads are rendered
«
Reply #2 on:
December 07, 2020, 10:25:15 »
No. I enabled only the depth test...
And that line that I don't really know what it does: glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
«
Last Edit: December 07, 2020, 10:27:17 by Mihai_Ionut_Floares
»
Logged
KaiHH
334
Re: The backface of quads are rendered
«
Reply #3 on:
December 07, 2020, 10:42:22 »
Quote from: Mihai_Ionut_Floares on December 07, 2020, 10:25:15
No. I enabled only the depth test...
Well... you need to enable backface culling then. Please read the referenced article.
And about what glClear() does: You can always just search/google the function names, you know, and you will get the documentation for that
->
https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glClear.xml
Logged
Print
Pages: [
1
]
« previous
next »