Sha256: 8c4570e1aa4a4da3b8dee4728086e3c6e9649a56f7071686e1cebed429b40016
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
# # Elevated # https://www.shadertoy.com/view/MdX3Rr by inigo quilez # Created by inigo quilez - iq/2013 # License Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. # Processing port by Raphaƫl de Courville. # attr_reader :landscape java_alias :background_int, :background, [Java::int] def setup size(640, 360, P2D) no_stroke # The code of this shader shows how to integrate shaders from shadertoy # into Processing with minimal changes. @landscape = load_shader("landscape.glsl") landscape.set("resolution", width.to_f, height.to_f) end def draw background_int 0 landscape.set("time", (millis/1000.0).to_f) shader(landscape) rect(0, 0, width, height) frame.set_title "frame: #{frame_count} - fps: #{frame_rate}" end
Version data entries
3 entries across 3 versions & 1 rubygems