All normal GLSL intrinsic functions are supported by Flair shaders, in addition to custom functions documented here.

This list is not exhaustive, so please refer to the OpenGL reference card in case you don't find what you were looking for.

If you have any suggestions on helpful functions that we can include, please let us know.

Shaderific - GLSL Functions


acos

Returns the arccosine of an angle in radians.

float acos(float angle)  
vec2 acos(vec2 angle)  
vec3 acos(vec3 angle)  
vec4 acos(vec4 angle)

asin

Returns the arcsine of an angle in radians.

float asin(float angle)  
vec2 asin(vec2 angle)  
vec3 asin(vec3 angle)  
vec4 asin(vec4 angle)

atan

Returns the arctangent of an angle in radians.

float atan(float angle)  
vec2 atan(vec2 angle)  
vec3 atan(vec3 angle)  
vec4 atan(vec4 angle)

cos

Returns the cosine of an angle in radians.

float cos(float angle)  
vec2 cos(vec2 angle)  
vec3 cos(vec3 angle)  
vec4 cos(vec4 angle)

degrees