Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Minor typo Compositor.gd
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaoticByte committed Jan 6, 2025
1 parent 0ddfa74 commit 2646f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Compositor.gd
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func inject_step_uniform(shader_code: String) -> Shader:
func update() -> Array: # returns error messages (strings)
# inject STEP uniform & get number of steps
var shader: Shader = inject_step_uniform(Filesystem.shader_code)
var step: int = ShaderDirectiveParser.parse_steps_directive(shader.code)
var steps: int = ShaderDirectiveParser.parse_steps_directive(shader.code)
# validate shader
if not validate_shader_compilation(shader):
return ["Shader compilation failed!"]
Expand Down Expand Up @@ -74,7 +74,7 @@ func update() -> Array: # returns error messages (strings)
key, # uniform param name
Filesystem.additional_images[key])
# iterate n times
for i in range(step):
for i in range(steps):
# set STEP param
mat.set_shader_parameter("STEP", i)
# assign material
Expand Down

0 comments on commit 2646f3d

Please sign in to comment.