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

Commit

Permalink
updating clipmap_level in update_frame()
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002e committed Dec 10, 2023
1 parent 2e1d477 commit 25ccdd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/iron/RenderPath.hx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ class RenderPath {
commands();

if (!isProbe) frame++;

}

public function setTarget(target: String, additional: Array<String> = null, viewportScale = 1.0) {
Expand Down
4 changes: 4 additions & 0 deletions Sources/iron/Scene.hx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ class Scene {
#end
for (anim in animations) anim.update(Time.delta);
for (e in empties) if (e != null && e.parent != null) e.transform.update();

#if (rp_voxels != "Off")
armory.renderpath.RenderPathCreator.clipmapLevel = (armory.renderpath.RenderPathCreator.clipmapLevel + 1) % Main.voxelgiClipmapCount;
#end
}

public function renderFrame(g: kha.graphics4.Graphics) {
Expand Down

0 comments on commit 25ccdd5

Please sign in to comment.