Skip to content

Commit 9424bf5

Browse files
committed
Fix julia not working and rename a variable.
1 parent 333e5a2 commit 9424bf5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

game/shader.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,9 @@ def create_iter_calc_shader(fractal_type, width, height, precision="single", mul
427427

428428
shader_program = pyglet.graphics.shader.ComputeShaderProgram(shader_source)
429429

430-
julia_image = pyglet.image.Texture.create(width, height, internalformat=pyglet.gl.GL_RGBA32F)
430+
iter_calc_image = pyglet.image.Texture.create(width, height, internalformat=pyglet.gl.GL_RGBA32F)
431431

432432
uniform_location = shader_program['img_output']
433-
julia_image.bind_image_texture(unit=uniform_location)
433+
iter_calc_image.bind_image_texture(unit=uniform_location)
434434

435-
return shader_program, julia_image
435+
return shader_program, iter_calc_image

utils/constants.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
initial_real_imag = {
1111
"mandelbrot": (-2.0, 1.0, -1.0, 1.0),
12+
"julia": (-2.0, 1.0, -1.0, 1.0),
1213
"mandelbar": (-2.0, 1.0, -1.0, 1.0),
1314
"phoenix_fractal": (-2.0, 1.0, -1.0, 1.0),
1415
"lambda_fractal": (-2.0, 1.0, -1.0, 1.0),

0 commit comments

Comments
 (0)