@superkellerman8D The fragment and vertex shaders are written in OpenGL-Shading-Language (GLSL). For the setup code (shader compile/upload/uniforms etc.) I'm using JOGL as my OpenGL to Java API binding.
@DemoscenePassivist I completely understand that, i am using jogl and glsl too. What i want to know is how to get the glsl shader into jogl, like how to load it and use it in my code.
@superkellerman8D U can take a look at my github repository for the jogl shader load/compile/setup code: github.com/demoscenepassivist/SocialCoding/blob/master/code_demos_jogamp/src/jogamp/routine/jogl/programmablepipeline/GL3_ShadowMapping.java
@superkellerman8D the BaseRoutine class is part of a framework used to run the different 'routines' I implement with jogl. The framework classes handle the setup/initialization/configuration of the GLCanvas as well as some basic JOGL setup. The source for these classes can be as well found on my github repository: github.com/demoscenepassivist/SocialCoding/tree/master/code_demos_jogamp/src/framework/base
How do you implement shaders in jogl? Or is this without a shader?
superkellerman8D 1 year ago
@superkellerman8D The fragment and vertex shaders are written in OpenGL-Shading-Language (GLSL). For the setup code (shader compile/upload/uniforms etc.) I'm using JOGL as my OpenGL to Java API binding.
DemoscenePassivist 1 year ago
@DemoscenePassivist I completely understand that, i am using jogl and glsl too. What i want to know is how to get the glsl shader into jogl, like how to load it and use it in my code.
superkellerman8D 1 year ago
@superkellerman8D U can take a look at my github repository for the jogl shader load/compile/setup code: github.com/demoscenepassivist/SocialCoding/blob/master/code_demos_jogamp/src/jogamp/routine/jogl/programmablepipeline/GL3_ShadowMapping.java
DemoscenePassivist 1 year ago
@DemoscenePassivist thank you, but what are these BaseRoutine Classes?
superkellerman8D 1 year ago
@superkellerman8D the BaseRoutine class is part of a framework used to run the different 'routines' I implement with jogl. The framework classes handle the setup/initialization/configuration of the GLCanvas as well as some basic JOGL setup. The source for these classes can be as well found on my github repository: github.com/demoscenepassivist/SocialCoding/tree/master/code_demos_jogamp/src/framework/base
DemoscenePassivist 1 year ago
@DemoscenePassivist cool.
superkellerman8D 1 year ago