Winding order #2913
evilduck41
started this conversation in
General
Winding order
#2913
Replies: 1 comment 2 replies
-
Once you're out of bgfx rendering part, the best way is to just call open GL call to set winding order you desire... bgfx doesn't store/restore state. bgfx assumes that all state needs to be set when inside bgfx renderer, and your code should assume all state needs to be set after you exit bgfx. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
BGFX apparently uses CW winding order with glFrontFace. There is a flag BGFX_STATE_FRONT_CCW that appears to do CCW.
My issue is I am running an opengl app that calls bgfx to do some post picture work after a render. Upon exiting bgfx the winding order of our model in our simulation is apparently reversed and so the model appears inside out. It tried issuing a setState with BGFX_STATE_FRONT_CCW then a frame() but no luck. How can I get bgfx to restore winding order?
Beta Was this translation helpful? Give feedback.
All reactions