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