Sha256: 4ad6f3f3c2c8260d8e94a62e5bd28fd695293fd237c480a7a4aa9b393f7914ed

Contents?: true

Size: 411 Bytes

Versions: 35

Compression:

Stored size: 411 Bytes

Contents

%w[xot rays reflex rubysketch]
  .map  {|s| File.expand_path "../../#{s}/lib", __dir__}
  .each {|s| $:.unshift s if !$:.include?(s) && File.directory?(s)}

require 'rubysketch'


RubySketch::GLSL.start <<END
  varying vec4 v_TexCoord;
  uniform vec2 resolution;
  uniform float time;
  void main ()
  {
    vec2 pos = v_TexCoord.xy / resolution;
    gl_FragColor = vec4(pos, float(mod(time, 1.0)), 1);
  }
END

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rubysketch-0.3.20 examples/glsl.rb
rubysketch-0.3.19 examples/glsl.rb
rubysketch-0.3.18 examples/glsl.rb
rubysketch-0.3.17 examples/glsl.rb
rubysketch-0.3.16 examples/glsl.rb
rubysketch-0.3.15 examples/glsl.rb
rubysketch-0.3.14 examples/glsl.rb
rubysketch-0.3.13 examples/glsl.rb
rubysketch-0.3.12 examples/glsl.rb
rubysketch-0.3.11 examples/glsl.rb
rubysketch-0.3.10 examples/glsl.rb
rubysketch-0.3.9 examples/glsl.rb
rubysketch-0.3.8 examples/glsl.rb
rubysketch-0.3.7 examples/glsl.rb
rubysketch-0.3.6 examples/glsl.rb
rubysketch-0.3.5 examples/glsl.rb
rubysketch-0.3.4 examples/glsl.rb
rubysketch-0.3.3 examples/glsl.rb
rubysketch-0.3.2 examples/glsl.rb
rubysketch-0.3.1 examples/glsl.rb