This commit is contained in:
2026-04-30 00:42:47 -07:00
parent 0245e2e1e6
commit 53cdb7d2ff
2 changed files with 6 additions and 2 deletions

View File

@ -864,7 +864,8 @@ class Uniforms {
f = iron.App.w() / iron.App.h();
}
case "_frameScale": {
f = RenderPath.active.frameTime / Time.delta;
var d = Time.delta;
f = d > 0.0001 ? Math.min(RenderPath.active.frameTime / d, 2.0) : 1.0;
}
case "_fieldOfView": {
f = camera.data.raw.fov;

View File

@ -953,7 +953,10 @@ class RenderPathDeferred {
path.bindTarget("tex", "tex");
path.drawShader("shader_datas/copy_pass/copy_pass");
path.setTarget("gbuffer0", ["tex", "gbuffer_refraction"]);
path.setTarget("gbuffer0", ["tex", "gbuffer_refraction",
#if rp_gbuffer2 "gbuffer1", #end
#if rp_gbuffer_emission "buf", #end
]);
#if rp_shadowmap
{