mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-03 23:15:23 +00:00
fixing gallery thumbnails
This commit is contained in:
parent
a363055286
commit
15167aa1ee
27
09/rays.frag
27
09/rays.frag
@ -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);
|
||||
}
|
BIN
09/rays.png
BIN
09/rays.png
Binary file not shown.
Before Width: | Height: | Size: 199 KiB |
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user