texture support

This commit is contained in:
Rakarake 2026-03-12 14:03:37 +01:00
parent d4a5fea127
commit b17759b34a
6 changed files with 8087 additions and 14 deletions

5
examples/texture.glsl Normal file
View file

@ -0,0 +1,5 @@
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = fragCoord / iResolution;
// mixes two textures
fragColor = mix(texture(iChannel0, uv), texture(iChannel1, uv), 0.2);
}