Skip to content

Commit 8e025db

Browse files
authored
Update glsl_heightmap_noise.rb
Closing square brackets oops!!!
1 parent 44e99bf commit 8e025db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

processing_app/topics/shaders/glsl_heightmap_noise.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ def setup
2929
@resize_factor = 0.25
3030
displace_strength = 0.25 # the displace strength of the GLSL shader
3131
# load the images
32-
textures = %w[Texture01.jpg Texture02.jpg)
32+
textures = %w[Texture01.jpg Texture02.jpg]
3333
@images = textures.map { |texture| load_image(data_path(texture)) }
3434
@color_map = 0
3535
# load the PShader with a fragment and a vertex shader
36-
shader_name = %w[displaceFrag.glsl displaceVert.glsl)
36+
shader_name = %w[displaceFrag.glsl displaceVert.glsl]
3737
shaders = shader_name.map { |s| data_path(s) }
3838
@displace = load_shader(shaders[0], shaders[1])
3939
displace.set('displaceStrength', displace_strength) # set the displace_strength

0 commit comments

Comments
 (0)