shaders/phosphor-basic.frag
branchv_0
changeset 21 bcc53967ab3c
parent 18 c4384f43c739
child 28 4cbd9c0beb4c
equal deleted inserted replaced
20:0899e966993e 21:bcc53967ab3c
    24 
    24 
    25 	// fColor = grayscale(fColor);
    25 	// fColor = grayscale(fColor);
    26 	// fColor = invert(fColor);
    26 	// fColor = invert(fColor);
    27 	fColor = (fColor-rand(vTextureXY)*0.3) * 1.6;
    27 	fColor = (fColor-rand(vTextureXY)*0.3) * 1.6;
    28 
    28 
    29 	float lineCount = 200.;
    29 	float lineCount = textureSize(uTexture, 0).y;
    30 	fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount)));
    30 	fColor.xyz *= abs(sin(radians(vTextureXY.y * 180. * lineCount)));
    31 
    31 
    32 	// float columnCount = 320;
    32 	// float columnCount = textureSize(uTexture, 0).x;
    33 	// fColor.xyz *=
    33 	// fColor.xyz *=
    34 	//  clamp(abs(sin(radians(vTextureXY.x * 180. * columnCount)))+0.6, 0., 1.);
    34 	//  clamp(abs(sin(radians(vTextureXY.x * 180. * columnCount)))+0.6, 0., 1.);
    35 
    35 
    36 	// fColor = grayscale(fColor) * vec4(1.00, 0.80, 0.10, 1.00); // amber
    36 	// fColor = grayscale(fColor) * vec4(1.00, 0.80, 0.10, 1.00); // amber
    37 	fColor = grayscale(fColor) * vec4(0.30, 0.80, 0.20, 1.00); // green
    37 	fColor = grayscale(fColor) * vec4(0.30, 0.80, 0.20, 1.00); // green