Login  Register

Re: JOGL Shader Questions

Posted by gouessej on Mar 26, 2013; 9:12am
URL: https://forum.jogamp.org/JOGL-Shader-Questions-tp4028783p4028825.html

You don't need glDrawPixels. You can use shaders with the helpers specific to JOGL or using the same methods you would call in plain C.

Personally, I love this tutorial even though it is a bit old. I gave you 2 examples in my previous post, have you understood them? I can show you how I use shaders in Ardor3D and JMonkeyEngine. Demoscene Passivist has some excellent examples too.

You can do gamma correction and lighting directly in the fragment shader.

Edit.: I like this quick GLSL reference guide too.

Edit.2: If I were you, I would not bind a whole engine to Java2D/AWT. Maybe use JOGL image loading with TextureIO. You can use JOGL under Android if and only if you don't depend on AWT.
Julien Gouesse | Personal blog | Website