File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
processing_app/topics/shaders Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,11 @@ def setup
29
29
@resize_factor = 0.25
30
30
displace_strength = 0.25 # the displace strength of the GLSL shader
31
31
# load the images
32
- textures = %w[ Texture01.jpg Texture02.jpg)
32
+ textures = %w[ Texture01.jpg Texture02.jpg ]
33
33
@images = textures . map { |texture | load_image ( data_path ( texture ) ) }
34
34
@color_map = 0
35
35
# 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 ]
37
37
shaders = shader_name . map { |s | data_path ( s ) }
38
38
@displace = load_shader ( shaders [ 0 ] , shaders [ 1 ] )
39
39
displace . set ( 'displaceStrength' , displace_strength ) # set the displace_strength
You can’t perform that action at this time.
0 commit comments