spheres vocabulary
Factor handbook ยป Vocabulary index


Summary
Draw pixel-perfect spheres using GLSL shaders

Metadata
Tags:opengl, demos
Authors:Joe Groff


Words

Tuple classes
ClassSuperclassSlots
spheres-world demo-worldplane-program solid-sphere-program texture-sphere-program reflection-framebuffer reflection-depthbuffer reflection-texture


Ordinary words
WordStack effect
(draw-colored-sphere)( program center radius surfacecolor -- )
(draw-reflection-texture)( gadget -- )
(draw-sphere)( program center radius -- )
(make-reflection-depthbuffer)( -- depthbuffer )
(make-reflection-framebuffer)( depthbuffer -- framebuffer )
(make-reflection-texture)( -- texture )
(plane-program)( -- program )
(reflection-dim)( -- w h )
(reflection-face)( gadget face -- )
(solid-sphere-program)( -- program )
(texture-sphere-program)( -- program )
plane-fragment-shader( -- string )
plane-vertex-shader( -- string )
reflection-frustum( gadget -- -x x -y y near far )
sphere-main-fragment-shader( -- string )
sphere-scene( gadget -- )
sphere-solid-color-fragment-shader( -- string )
sphere-texture-fragment-shader( -- string )
sphere-vertex-shader( -- string )
spheres-window( -- )


Class predicate words
WordStack effect
spheres-world?( object -- ? )


Files


Metadata files