We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44e99bf commit 8e025dbCopy full SHA for 8e025db
processing_app/topics/shaders/glsl_heightmap_noise.rb
@@ -29,11 +29,11 @@ def setup
29
@resize_factor = 0.25
30
displace_strength = 0.25 # the displace strength of the GLSL shader
31
# load the images
32
- textures = %w[Texture01.jpg Texture02.jpg)
+ textures = %w[Texture01.jpg Texture02.jpg]
33
@images = textures.map { |texture| load_image(data_path(texture)) }
34
@color_map = 0
35
# load the PShader with a fragment and a vertex shader
36
- shader_name = %w[displaceFrag.glsl displaceVert.glsl)
+ shader_name = %w[displaceFrag.glsl displaceVert.glsl]
37
shaders = shader_name.map { |s| data_path(s) }
38
@displace = load_shader(shaders[0], shaders[1])
39
displace.set('displaceStrength', displace_strength) # set the displace_strength
0 commit comments