## # Monjori. # # GLSL version of the 1k intro Monjori from the demoscene # (http://www.pouet.net/prod.php?which=52761) # Ported from the webGL version available in ShaderToy: # http://www.iquilezles.org/apps/shadertoy/ # (Look for Monjori under the Plane Deformations Presets) ## attr_reader :monjori def setup size(640, 360, P2D) noStroke() @monjori = loadShader("monjori.glsl") monjori.set("resolution", width, height) end def draw monjori.set("time", millis() / 1000.0) shader(monjori) # This kind of effects are entirely implemented in the # fragment shader, they only need a quad covering the # entire view area so every pixel is pushed through the # shader. rect(0, 0, width, height) end
Experiments with ruby-processing (processing-2.2.1) and JRubyArt for processing-3.0
Tuesday, 4 December 2012
PShader Example in ruby-processing
This example is running with my hacked version of ruby-processing (based on vanilla processing-2.0b6).
Labels:
GLSL shader,
processing-2.0,
PShader,
ruby-processing
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
-
▼
2012
(26)
-
▼
December
(17)
- Bezier Patch as a VBO (PShape)
- Bezier Patch in ruby-processing
- Rotating Arcs Sketch in Ruby Processing
- Context free sketch in regular ruby processing
- Exporting cf3ruby directly to 'large' pdf
- Context Free Tree in cf3ruby
- New context_free.rb (cf3ruby)
- MeshToVBO conversion ruby-processing
- Fix for ruby-processing context free
- What works what does not and may not
- Retained Shape (FBO) in Ruby Processing
- Creating a Mock Vanilla Processing Distribution
- Landscape shader in ruby-processing
- Fish-eye shader revisited with ruby-processing and...
- PShader Example in ruby-processing
- A 3D-texture example with my hacked ruby-processing
- Testing ruby-processing with processing-2.0
-
▼
December
(17)
About Me
- monkstone
- I have developed JRubyArt and propane new versions of ruby-processing for JRuby-9.1.5.0 and processing-3.2.2
No comments:
Post a Comment