forked from LeenkxTeam/LNXSDK
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8fd05d5514 | |||
ad4013ed75 |
@ -641,18 +641,20 @@ class RenderPathForward {
|
|||||||
var framebuffer = "";
|
var framebuffer = "";
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if ((rp_antialiasing == "Off") || (rp_antialiasing == "FXAA"))
|
RenderPathCreator.finalTarget = path.currentTarget;
|
||||||
|
|
||||||
|
var target = "";
|
||||||
|
#if ((rp_antialiasing == "Off") || (rp_antialiasing == "FXAA") || (!rp_render_to_texture))
|
||||||
{
|
{
|
||||||
RenderPathCreator.finalTarget = path.currentTarget;
|
target = framebuffer;
|
||||||
path.setTarget(framebuffer);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
path.setTarget("buf");
|
target = "buf";
|
||||||
RenderPathCreator.finalTarget = path.currentTarget;
|
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
path.setTarget(target);
|
||||||
|
|
||||||
#if rp_compositordepth
|
#if rp_compositordepth
|
||||||
{
|
{
|
||||||
path.bindTarget("_main", "gbufferD");
|
path.bindTarget("_main", "gbufferD");
|
||||||
@ -671,6 +673,15 @@ class RenderPathForward {
|
|||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
|
#if rp_overlays
|
||||||
|
{
|
||||||
|
path.setTarget(target);
|
||||||
|
path.clearTarget(null, 1.0);
|
||||||
|
path.drawMeshes("overlay");
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
|
||||||
#if ((rp_antialiasing == "SMAA") || (rp_antialiasing == "TAA"))
|
#if ((rp_antialiasing == "SMAA") || (rp_antialiasing == "TAA"))
|
||||||
{
|
{
|
||||||
path.setTarget("bufa");
|
path.setTarget("bufa");
|
||||||
@ -701,12 +712,6 @@ class RenderPathForward {
|
|||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if rp_overlays
|
|
||||||
{
|
|
||||||
path.clearTarget(null, 1.0);
|
|
||||||
path.drawMeshes("overlay");
|
|
||||||
}
|
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function setupDepthTexture() {
|
public static function setupDepthTexture() {
|
||||||
|
Reference in New Issue
Block a user