specify for method as well

master
David Zhao 6 years ago committed by GitHub
parent 6448d6051f
commit fb90b1a668
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,10 +1,10 @@
#include "sh_Flashlight.h"
vec4 getColourAt(highp vec2 diff, highp vec2 size, lowp vec4 originalColour)
lowp vec4 getColourAt(highp vec2 diff, highp vec2 size, lowp vec4 originalColour)
{
diff = abs(diff);
lowp float alpha = length(smoothstep(size, size * smoothness, diff));
return originalColour * vec4(1.0, 1.0, 1.0, alpha);
}
}

Loading…
Cancel
Save