Closed martin-t closed 2 years ago
DebugRenderBackend::draw_line receives color as HSLA but fyrox reads it as RGBA. This results in most lines being white/yellowish.
DebugRenderBackend::draw_line
This doesn't appear documented on the function itself, only here, but rapier's tests/examples treat it as HSLA: https://github.com/dimforge/rapier/blob/master/src_testbed/debug_render.rs#L45
Rapier issue about clarifying the docs: https://github.com/dimforge/rapier/issues/370
Good catch! I'm very surprised that the color is not in RGBA. I'll create Hsl color conversion to bypass this.
DebugRenderBackend::draw_line
receives color as HSLA but fyrox reads it as RGBA. This results in most lines being white/yellowish.This doesn't appear documented on the function itself, only here, but rapier's tests/examples treat it as HSLA: https://github.com/dimforge/rapier/blob/master/src_testbed/debug_render.rs#L45
Rapier issue about clarifying the docs: https://github.com/dimforge/rapier/issues/370