From 5242f387995b6251ff1bf7902b3ac6428f381fb0 Mon Sep 17 00:00:00 2001 From: timb Date: Mon, 13 Jan 2014 22:11:45 -0800 Subject: make step work like in glsl... step(a,b) returns 0 if b < a, 1 otherwise --- instructions.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'instructions.html') diff --git a/instructions.html b/instructions.html index 2767e48..fb522c0 100644 --- a/instructions.html +++ b/instructions.html @@ -29,7 +29,7 @@ E, PI, PHI convenience functions clamp(n,min,max) mix(n,a,b) (lerp) -step(n,a,b) +step(a,b) smoothstep(n,a,b) avg(m,n,a) cosp, sinp (mapped to [0,1]) -- cgit v1.2.3-70-g09d2