Re: Looking for a shader example

Posted by Xerxes RÄnby on
URL: https://forum.jogamp.org/Looking-for-a-shader-example-tp4025242p4025251.html

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

If you reply to this email, your message will be added to the discussion below:
http://forum.jogamp.org/Looking-for-a-shader-example-tp4025242.html
To start a new topic under jogamp, email [hidden email]
To unsubscribe from jogamp, click here.
NAML