MyGUI / mygui

Fast, flexible and simple GUI.
http://mygui.info/
Other
713 stars 205 forks source link

correct vertex color order for ogre 13 #234

Closed paroj closed 2 years ago

paroj commented 2 years ago

fixes #230

sercero commented 2 years ago

Thanks!

Altren commented 2 years ago

Could you explain the reason why this helps? All I can see is two swapped if's. Does Ogre have identical enum values?

paroj commented 2 years ago

yes, as cited in the bug report:

VET_COLOUR* is now an alias for VET_UBYTE4_NORM. On most RenderSystems VET_COLOUR would be already mapped to VET_UBYTE4_NORM anyway. A notable exception is D3D9, where this changes the channel order from BGRA to RGBA. If you are using custom vertex shaders, you must update them accordingly.

Altren commented 2 years ago

Thank you