Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using 2 textures in GLSL #313

Open
rpreininger opened this issue Aug 1, 2023 · 0 comments
Open

using 2 textures in GLSL #313

rpreininger opened this issue Aug 1, 2023 · 0 comments

Comments

@rpreininger
Copy link

I' testing mix of 2 textures, but only the first one is used.
In the ressource manager both are displayed and binding is 0 and 1.
But in this simple fragment shader:

uniform sampler2D tex0;
uniform sampler2D tex1;

..
vec2 uv = gl_FragCoord.xy/uResolution;
vec4 color0 = texture(tex0, uv);
vec4 color1 = texture(tex1, uv);

outColor = mix(color0, color1, 0.5);

only the first one is used.
Thanks
Ralf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant