glsl/stdlib
src/glsl/stdlib.tur
defn
phong-lighting
(phong-lighting :cstr)
return a GLSL function string implementing Phong shading.
Returns
Complete GLSL function definition string.
Example
(phong-lighting) ; returns the function source string
Since: v0.1.0
defn
fresnel
(fresnel :cstr)
return a GLSL function string implementing the Schlick Fresnel approximation.
Returns
Complete GLSL function definition string.
Example
(fresnel) ; returns the function source string
Since: v0.1.0
defn
gamma-correct
(gamma-correct :cstr)
return a GLSL function string for gamma correction.
Returns
Complete GLSL function definition string.
Example
(gamma-correct) ; returns the function source string
Since: v0.1.0