Thread: Shaders...
View Single Post
  #2  
Old 02-20-2007, 09:27 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard comes with 2 sample scripts showing how to use GLSL. The scripts are tutorial_alphaMap.py and tutorial_multiTexture.py and are located in the [Vizard30]/examples/shader directory.

For example, if you wanted to create a floating point parameter, you would do the following:
Code:
MyParam = viz.addUniformFloat( 'paramName', 0.5 )
node.apply(MyParam)
Reply With Quote