fixing gallery thumbnails

This commit is contained in:
Patricio Gonzalez Vivo 2016-04-23 17:59:57 -04:00
parent a363055286
commit 15167aa1ee
3 changed files with 3 additions and 32 deletions

View File

@ -1,27 +0,0 @@
// Author @patriciogv - 2015 - patricio.io
#ifdef GL_ES
precision mediump float;
#endif
const float PI = 3.1415926535897932384626433832795;
uniform vec2 u_resolution;
uniform vec2 u_mouse;
uniform float u_time;
float stripes(vec2 st){
return step(.2,abs(sin(st.x*PI)));
}
void main(){
vec2 st = gl_FragCoord.xy/u_resolution.xy;
st.x *= u_resolution.x/u_resolution.y;
vec2 pos = vec2(0.5)-st;
float a = atan(pos.y,pos.x);
float r = length(pos);
vec3 color = vec3(stripes(vec2(a,r)*50.));
gl_FragColor = vec4(color, 1.0);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 199 KiB

View File

@ -1,15 +1,13 @@
@charset 'utf-8';
.glslGallery {
-moz-column-width: 0em;
-webkit-column-width: 0em;
-moz-column-width: 7em;
-webkit-column-width: 7em;
}
.glslGallery_item{
width: 150px;
margin-bottom: 4;
margin-left: 2px;
margin-right: 2px;
margin: 2px;
}
.glslGallery_thumb{