question about GLSL with GL3 in jogl

HI all,

I was searching for a demo for using glsl in java. (never tried it before). Does anyone have an example? in the demos there is for GLES?

If you want to use GL3 (hope you mean GL3 forward compatible context) small demos are a little difficult, because you must do all the matrix and primitive stuff by yourself. So you need at least a projection matrix, a modelview matrix, the shader itself, a vertex array for your geometry, and some glue to put it all together.

I have a little sample (webstart, jar, source).

It is written against the current JOGL2 (nightly build) and use GL 3.2 / GLSL 1.5 (core). At the moment I think the only adequate driver for this is http://developer.nvidia.com/object/opengl_3_driver.html (I don’t know what is with ati).
(but you should be able to replace the " #version 150 core" with " #version 140" in the shaders to make it work with some older GL3 drivers (I don’t tested this))

I hope this helps a little bit.

Regards,
Fancy

Thanks for the demo.

So I guess i have to implement my own Adapters for my context.

BTW does anyone know a good editor for shader programs that is plug able to ellipse
Or should i use a standalone one?