Skip to content

Instantly share code, notes, and snippets.

View spite's full-sized avatar
馃摝
i'm a smaller box

Jaume Sanchez spite

馃摝
i'm a smaller box
View GitHub Profile
#if GL_FRAGMENT_PRECISION_HIGH == 1
precision highp int;
precision highp float;
#endif
uniform sampler2D uSampler;
uniform float time;
uniform float baseRotation1;
uniform float rotationSpeed1;
uniform float baseRotation2;
uniform float rotationSpeed2;
function initLoader() {
function draw( threshold ) {
for( var j = 0; j < srcBuf8.length; j += 4 ) {
var c = imgBuf8[聽j ] + imgBuf8[ j + 1 ] + imgBuf8[ j + 2 ];
c /= 3;
dstBuf8[ j ]聽= c;
dstBuf8[ j + 1 ]聽= c;