Login  Register

Re: JOGL 2 - BumpMap with Shader

Posted by Sven Gothel on Nov 12, 2012; 9:39pm
URL: https://forum.jogamp.org/JOGL-2-BumpMap-with-Shader-tp4026889p4026909.html

On 11/12/2012 10:29 PM, greatdonking [via jogamp] wrote:
> Could you please give the complete link ?
> I will study this example :)
>

This is Xerxes ES2 demo, only using standard OpenGL calls:
  <http://jogamp.org/git/?p=jogl-demos.git;a=blob;f=src/demos/es2/RawGL2ES2demo.java;hb=HEAD>

(Not normal/height mapping related, but for you to see how to map uniform/attributes
 w/o using further JOGL utilities)

GearsES2 is a bit more complex, and it's Java code
uses JOGL GLSL utils for easy coding:
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/GearsES2.java;hb=HEAD>

You can find the shader source code here:
  <http://jogamp.org/git/?p=jogl.git;a=tree;f=src/test/com/jogamp/opengl/test/junit/jogl/demos/es2/shader;hb=HEAD>

So it's all in our git repos ..

~Sven



signature.asc (907 bytes) Download Attachment