Leggy Land
Made with coffee, lots of it.
Home
Fursona
Blogs
Chat
Tools
Loading...
#version 300 es precision highp float; layout(location = 0) in vec2 aPosition; // Vertex shader // ================== // Source code for example: // https://github.com/ostefani/web-gl-series/blob/main/article-2/shaders/basic.vert.glsl // out vec2 vUV; void main() { vUV = aPosition * 0.5 + 0.5; vUV.y = 1.0 - vUV.y; gl_Position = vec4(aPosition, 0.0, 1.0); }
#version 300 es precision highp float; // Fragment shader // ================== // Source code for example: // https://github.com/ostefani/web-gl-series/blob/main/article-2/shaders/basic.frag.glsl // // Currently available values: // time: float // in vec2 vUV; out vec4 fragColor; void main() { fragColor = vec4(vUV.x, vUV.y, 0.5, 1.0); }