Re: Modern JOGL, simple texture example
Posted by
elect on
Sep 03, 2013; 12:31pm
URL: https://forum.jogamp.org/Modern-JOGL-simple-texture-example-tp4029964p4029967.html
Xerxes Rånby wrote
You have a faulty assignment of different type in the fragment shader.
outputColor is a vec4 while you tried to pass it a "vec3" (.rgb)
Use:
outputColor = texture(myTexture, fragmentUV).rgba;
It worked for me:

O.o ... I fixed as you said but on mine its still not working..
Are you running the same code?