The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers


OpenGL Headline News

SIGGRAPH BOF Videos from July 27th 10AM - 6PM PT. View here

Building Worlds With Distance Functions in GLSL

Category: DevelopersComments

May 28, 2013

Distance functions are very popular in the demoscene world and this article will show you some simple distance functions that allow to model basic shapes (plane, sphere, box, torus) in GLSL. Demos based on the OpenGL Shading Language and Lua programming language are provided.

Read more OpenGL news