https://github.com/sylvainthery/procedural_micro_patterns
Tip revision: a26bd38e4abcbfd6bf58e9a5fa424d9ceb959960 authored by Sylvain Thery on 02 December 2022, 14:10:09 UTC
update README
update README
Tip revision: a26bd38
dbg_inputs.frag
#version 300 es
precision highp float;
precision highp sampler2D;
uniform sampler2D TU;
uniform int channel;
in vec2 tc;
out vec4 frag_out;
void main()
{
vec4 texel = texture(TU,tc);
if (channel<0)
frag_out = vec4(texel.rgb,1);
else
frag_out = vec4(vec3(texel[channel]),1);
}