# glslFunc()

# Example

Example 2 Custom Color + Shape Extrusion (click to open)

Example 3 Custom Raymarcher

# Description

Creates a javascript function from a GLSL function. This enables the ability to use if statements(branching),work with integers and even create your own raymarcher. Note this will not work with GL ES3. To use GL ES3 look at glslFuncES3 (note, the error handeling of the glsl is not nearly as good as the glslFunc).

# Syntax


# Parameters

func String: a String containing a GLSL function.

# Returns

Function: An encapsulated version of func. Any arguments given to this function will be forwarded as arguments to the provided glsl function.