Fix julia not working and rename a variable.

This commit is contained in:
csd4ni3l
2025-07-04 22:04:36 +02:00
parent 333e5a23e8
commit 9424bf589a
2 changed files with 4 additions and 3 deletions

View File

@@ -427,9 +427,9 @@ def create_iter_calc_shader(fractal_type, width, height, precision="single", mul
shader_program = pyglet.graphics.shader.ComputeShaderProgram(shader_source) shader_program = pyglet.graphics.shader.ComputeShaderProgram(shader_source)
julia_image = pyglet.image.Texture.create(width, height, internalformat=pyglet.gl.GL_RGBA32F) iter_calc_image = pyglet.image.Texture.create(width, height, internalformat=pyglet.gl.GL_RGBA32F)
uniform_location = shader_program['img_output'] uniform_location = shader_program['img_output']
julia_image.bind_image_texture(unit=uniform_location) iter_calc_image.bind_image_texture(unit=uniform_location)
return shader_program, julia_image return shader_program, iter_calc_image

View File

@@ -9,6 +9,7 @@ discord_presence_id = 1365949409254441000
initial_real_imag = { initial_real_imag = {
"mandelbrot": (-2.0, 1.0, -1.0, 1.0), "mandelbrot": (-2.0, 1.0, -1.0, 1.0),
"julia": (-2.0, 1.0, -1.0, 1.0),
"mandelbar": (-2.0, 1.0, -1.0, 1.0), "mandelbar": (-2.0, 1.0, -1.0, 1.0),
"phoenix_fractal": (-2.0, 1.0, -1.0, 1.0), "phoenix_fractal": (-2.0, 1.0, -1.0, 1.0),
"lambda_fractal": (-2.0, 1.0, -1.0, 1.0), "lambda_fractal": (-2.0, 1.0, -1.0, 1.0),