Make HUD draw over everything
Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -1994,6 +1994,7 @@ void render_3d(LunarWM *this, float /*dt*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (IsTextureValid(this->renderer.hud_rt.texture)) {
|
if (IsTextureValid(this->renderer.hud_rt.texture)) {
|
||||||
|
rlDrawRenderBatchActive();
|
||||||
rlDisableDepthTest();
|
rlDisableDepthTest();
|
||||||
|
|
||||||
Vector3 camPos = this->renderer.camera.position;
|
Vector3 camPos = this->renderer.camera.position;
|
||||||
@@ -2009,6 +2010,7 @@ void render_3d(LunarWM *this, float /*dt*/)
|
|||||||
|
|
||||||
DrawBillboardNoShear(this->renderer.camera,
|
DrawBillboardNoShear(this->renderer.camera,
|
||||||
this->renderer.hud_rt.texture, center, heightMeters * 5, WHITE);
|
this->renderer.hud_rt.texture, center, heightMeters * 5, WHITE);
|
||||||
|
rlDrawRenderBatchActive();
|
||||||
|
|
||||||
rlEnableDepthTest();
|
rlEnableDepthTest();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user