mirror of
https://github.com/csd4ni3l/fractal-viewer.git
synced 2025-11-05 02:58:02 +01:00
Fix julia not working and rename a variable.
This commit is contained in:
@@ -427,9 +427,9 @@ def create_iter_calc_shader(fractal_type, width, height, precision="single", mul
|
||||
|
||||
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']
|
||||
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
|
||||
|
||||
@@ -9,6 +9,7 @@ discord_presence_id = 1365949409254441000
|
||||
|
||||
initial_real_imag = {
|
||||
"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),
|
||||
"phoenix_fractal": (-2.0, 1.0, -1.0, 1.0),
|
||||
"lambda_fractal": (-2.0, 1.0, -1.0, 1.0),
|
||||
|
||||
Reference in New Issue
Block a user