Skip to content

Update olcPGEX_Graphics3D.h#236

Open
Spejik wants to merge 1 commit intoOneLoneCoder:masterfrom
Spejik:patch-1
Open

Update olcPGEX_Graphics3D.h#236
Spejik wants to merge 1 commit intoOneLoneCoder:masterfrom
Spejik:patch-1

Conversation

@Spejik
Copy link
Copy Markdown

@Spejik Spejik commented May 14, 2021

I've been having issues with m_DepthBuffer overflowing when Rendering with RENDER_DEPTH, so I switched it to vector<float> from float*, and added a check if the buffer index has overflown.
There's possibly some better solutions, however, I didn't see any black pixels appearing in the meshes nor the sky (when Clearing the screen with, let's say, olc::BLUE), so I came to the concussion it's fine to do it like this (but correct me if I'm wrong 😄)

I've been having issues with `m_DepthBuffer` overflowing when Rendering with `RENDER_DEPTH`, so I switched it to `vector<float>` from `float*`, and added a check if the buffer index has overflown. 
There's possibly some better solutions, however, I didn't see any black pixels appearing in the meshes nor the sky (when Clearing the screen with, let's say, `olc::BLUE`), so I came to the concussion it's fine to do it like this (but correct me if I'm wrong 😄)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant