diff options
author | Kenneth Russel <[email protected]> | 2004-11-17 20:49:11 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2004-11-17 20:49:11 +0000 |
commit | 44f2b889ee5174636031165366ee449228b00a36 (patch) | |
tree | aab3b06041ca5ced5b1b677ba40b1e309f042eef /src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java | |
parent | ea84a3853503f087283eb5bde36d8318d0401b56 (diff) |
Ported ProceduralTexturePhysics demo to ARB_vertex_program and
ARB_fragment_program from NV_vertex_program, NV_register_combiners and
NV_texture_shader for compatibility with all vendors' graphics cards.
Tested resulting demo on both NVidia and ATI cards. Framerate on
Quadro FX Go700 is close to original version after optimization of a
few of the fragment programs. Results are visually similar to (though
probably not identical to) the original version.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@41 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java')
-rw-r--r-- | src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java b/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java index 03ef552..9fa329d 100644 --- a/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java +++ b/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java @@ -48,11 +48,11 @@ import gleem.linalg.*; * * <P> * - * Demonstrates pbuffers, vertex programs, register combiners + * Demonstrates pbuffers, vertex programs, fragment programs * * <P> * - * Ported to Java by Kenneth Russell + * Ported to Java and ARB_fragment_program by Kenneth Russell * */ @@ -131,9 +131,8 @@ public class ProceduralTexturePhysics { try { checkExtension(gl, "GL_ARB_multitexture"); - checkExtension(gl, "GL_NV_vertex_program"); - checkExtension(gl, "GL_NV_texture_shader"); - checkExtension(gl, "GL_NV_register_combiners"); + checkExtension(gl, "GL_ARB_vertex_program"); + checkExtension(gl, "GL_ARB_fragment_program"); checkExtension(gl, "GL_ARB_pbuffer"); checkExtension(gl, "GL_ARB_pixel_format"); } catch (GLException e) { |