forked from LeenkxTeam/LNXSDK
SSRS WebGL Fix
This commit is contained in:
@ -669,11 +669,20 @@ class Inc {
|
|||||||
#end
|
#end
|
||||||
|
|
||||||
#if rp_ssrs
|
#if rp_ssrs
|
||||||
|
#if (!kha_opengl)
|
||||||
|
path.setDepthFrom("accum", "gbuffer1"); // Unbind depth so we can read it
|
||||||
|
#end
|
||||||
path.bindTarget("_main", "gbufferD");
|
path.bindTarget("_main", "gbufferD");
|
||||||
#end
|
#end
|
||||||
|
|
||||||
path.drawMeshes("translucent");
|
path.drawMeshes("translucent");
|
||||||
|
|
||||||
|
#if rp_ssrs
|
||||||
|
#if (!kha_opengl)
|
||||||
|
path.setDepthFrom("accum", "gbuffer0"); // Re-bind depth
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
#if rp_render_to_texture
|
#if rp_render_to_texture
|
||||||
{
|
{
|
||||||
path.setTarget(target);
|
path.setTarget(target);
|
||||||
|
|||||||
Reference in New Issue
Block a user