![]() Vec2 vertex = vec2((gl_VertexID & 1) = 0.0 & lambda.x < lambda.y & lambda. Private static final String QUAD_PROGRAM_VS_SOURCE = """ NVIDIA continues to support OpenGL as well. Private static final int WINDOW_HEIGHT = 800 NVIDIA supports OpenGL and a complete set of OpenGL extensions, designed to give you maximum performance on our GPUs. Private static final int WINDOW_WIDTH = 800 Import static .setupDebugMessageCallback So here is a simple ray tracing example (static scene, static camera) in under 180 lines of code (Java + GLSL code) (requires JDK13+ with -enable-preview): ![]() I wanted to play around a little bit with Java 13 text blocks and thought it would be a good idea to finally have GLSL shader source code literals embedded into Java source code to get a really single-source-file demo. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |