Re: Modern JOGL, simple texture example
Posted by
Xerxes Rånby on
Sep 03, 2013; 12:37pm
URL: https://forum.jogamp.org/Modern-JOGL-simple-texture-example-tp4029964p4029968.html
<quote author="elect">
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;
...
O.o ... I fixed as you said but on mine its still not working..
Are you running the same code?
I am running exactly this, Linux 12.04 32bit using NVIDIA 4.3 drivers.
git clone
https://github.com/xranby/modern-jogl-examplescd modern-jogl-examples/modern-jogl-examples
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/ mvn install
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/ mvn exec:java -Dexec.mainClass=tut14.Test