
Tag Archives: shader
Cloudy Tunnel Tweet Shader
GeeXLab 0.44 Released for Windows and Linux
Jellyfish Tweet Shader
(Demo) QR Code Shaders
(Demo) Shader Tweet (Updated)
Shadertoy Demopack v2020.04-16
(Demo) Loading SPIR-V Shaders in your OpenGL Demos
(Demo) Earth: Day to Night Transition
Shadertoy Demopack v2020.02-07
(Demo) Electrical Arc
(Demo) Simple 2D grid in GLSL
(Demo) Wireframe Shader (OpenGL 3.2 and OpenGL ES 3.1)
(Demo) Fire Shader
New Way to Live-Code GLSL Shaders in GeeXLab 0.16+
How to Read the Keyboard in a GLSL Shader

Interesting question, especially if you try to port some Shadertoy demos that can read the keyboard from the pixel shader.
GLSL Uniform Structures

Do you know that you can use data structures as uniform variables in GLSL?
A Simple Method to Render an Image

To render an image, we need an orthographic camera, a texture GPU program, a quad and the image (a texture).
How to Use a GLSL Program

Let’s suppose you just found this cool GLSL program somewhere on the Net:
Vertex shader:
#version 120 void main() { gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; }
Pixel shader:
#version 120 void main() { gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); }
Now, let’s suppose you want to test it with a mesh torus. The first thing to do is to create a XML node for the GLSL program in the main XML file.