Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
reinit voxel's resolve image in case resize() is called.
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002e committed Mar 26, 2024
1 parent 6408dd9 commit 847d0c4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Sources/iron/RenderPath.hx
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ class RenderPath {
}
}

// Resize textures FIXME: this doesn't seam to resize 2D images (not renderTargets)
// Resize textures FIXME: this doesn't seem to resize 2D images
for (rt in renderTargets) {
if (rt != null && rt.raw.width == 0) {
App.notifyOnInit(rt.image.unload);
Expand All @@ -581,6 +581,16 @@ class RenderPath {
rt.image.setDepthStencilFrom(depthToRenderTarget.get(rt.depthStencilFrom).image);
}
}

#if (rp_voxels != "Off")
#if (rp_voxels == "Voxel GI")
armory.renderpath.Inc.initGI("voxels_diffuse");
armory.renderpath.Inc.initGI("voxels_specular");
#else
armory.renderpath.Inc.initGI("voxels_ao");
#end
armory.renderpath.RenderPathCreator.res_pre_clear = true;
#end
}

public function createRenderTarget(t: RenderTargetRaw): RenderTarget {
Expand Down

0 comments on commit 847d0c4

Please sign in to comment.