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
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
You can’t perform that action at this time.
0 commit comments