Closed TheBoneJarmer closed 1 year ago
Hello @TheBoneJarmer thank you for your attention.
GL_BLEND
will be enabled and disabled per object, but yes, we still need it somewhere in the Render3D::render()
function.
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); is called inside draw callback (set in Renderer3D
constructor)
I added set_clear_color
member function to Renderer3D
, will be included in the next commit.
GL_CULL_FACE
is needed indeed as you said, will be added in the next commit.
Thanks for the heads up.
Hey, no biggie. Glad I could help! ^_^
Hey,
I was browsing your code and I noticed something in https://github.com/grizzlei/nle/blob/69f1a59d002de9a687e86aa777a1fd3085bec099/src/nle/Renderer3D.cpp#L103
Your method seems to lack some stuff that disable back-culling and enable transparent textures. I will share what I use so you can see for yourself:
Hope it helps!