Fixed some things

This commit is contained in:
Anuken
2018-11-13 23:24:59 -05:00
parent d824b41bbb
commit 785c2e36c6
5 changed files with 14 additions and 18 deletions
+5 -5
View File
@@ -7,6 +7,7 @@ precision mediump int;
#define p2 vec3(234.0,182.0,120.0)/255.0
#define p3 vec3(212.0,129.0,107.0)/255.0
#define p4 vec3(142.0,77.0,72.0)/255.0
#define roundm 0.2
uniform sampler2D u_texture;
uniform vec2 u_resolution;
@@ -21,12 +22,11 @@ varying vec2 v_texCoord;
void main() {
ivec2 coords = ivec2((gl_FragCoord.xy - u_resolution/2.0)/u_scl);
int roundx = 8;
int roundy = roundx;
float roundm = 0.2;
//int roundx = 8;
//int roundy = roundx;
coords.x = (coords.x / roundx) * roundx;
coords.y = (coords.y / roundy) * roundy;
//coords.x = (coords.x / roundx) * roundx;
//coords.y = (coords.y / roundy) * roundy;
float d = (abs(float(coords.x)) - abs(float(coords.y)));