Legacy-LuaSTG-Engine / LuaSTG-Sub

LuaSTG Sub, a modern version of the LuaSTG engine. LuaSTG Sub,现代化的 LuaSTG 引擎分支。
MIT License
35 stars 7 forks source link

Models disappear when captured through RenderTarget #23

Closed KaleiAlma closed 9 months ago

KaleiAlma commented 10 months ago

I added a model to the stage background of my script, and when the boss comes in it disappears. It seems to be related to the RenderTarget more than the PostEffect shaders.

To reproduce, try rendering a model resource between calls to PushRenderTarget and PopRenderTarget.

KaleiAlma commented 9 months ago

As it turns out, clearing the z-buffer (despite not using it) solved my problem. Closing