[osg-users] Embedded shader code examples in .osg mesh file?

Dunhour, Mike (CIV) msdunhou at nps.edu
Tue Jul 24 18:25:05 PDT 2007


Hello

  Looking for example on how to embed shader code into an .osg mesh file
replacing material settings.

   Looks something like

Program {
  UniqueID Program_1
  DataVariance STATIC
  num_shaders 1
  Shader {
    DataVariance DYNAMIC
    type FRAGMENT
    code {
    "void main (void)"
........


Unsure where to place and what else is needed

Thank you

Mr. D


More information about the osg-users mailing list