2012-06-19 06:55, Agnes [via jogamp] skrev:
I am looking for a simple JOGL shader example that
shows the essentials of pixel and vertex shading - for example,
one triangle with shaders that simply copy the values from the
geometry. Such an example must exist, but I can't find it... Can
anyone help?
Hi I created a really basic example, to help my own understanding,
that displays a shaded triangle that you can try:
https://raw.github.com/xranby/jogl/master/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RawGL2ES2demo.java
wget http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z
7z x jogamp-all-platforms.7z
cd jogamp-all-platforms
wget https://raw.github.com/xranby/jogl/master/src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/RawGL2ES2demo.java
javac -cp jar/jogl.all.jar:jar/gluegen-rt.jar RawGL2ES2demo.java
java -cp jar/jogl.all.jar:jar/gluegen-rt.jar:. RawGL2ES2demo