Info

  • Spec here, tutorial here
  • Defined in OpenGL 2.0
  • Also known as glslang
  • nVidia's cG also compatible with OpenGL
  • "ARB extensions" - older?
  • do glxinfo to get OpenGL version

Notes

Variables

  • Uniforms - they don't change during a rendering. Read Only
  • Attributes - only in vertex shaders. Input data. Change each vertex processed
  • Varyings - for passing data from vertex to fragment shader. Read only in vertex but read/write in fragment.
(all must be globals)

Language Features

  • 100% type safe (casts required from ints to floats)
  • Vectors & matrices only fill-able in xtors

Operations

  • dot, cross, normalize, clamp, texture2D

-- MattWalsh - 08 Dec 2008

Topic revision: r4 - 10 Apr 2009 - MattWalsh
 
This site is powered by the TWiki collaboration platformCopyright © 2008-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback