texture support
This commit is contained in:
parent
d4a5fea127
commit
b17759b34a
6 changed files with 8087 additions and 14 deletions
5
examples/texture.glsl
Normal file
5
examples/texture.glsl
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue