Woops, I forget to send the other buggy scene.

Cheers,

--
Lamoliatte Stephane
Ingenieur R&D

R.S.A. Cosmos
Z.I. de la Vaure - B.P.40
42290 Sorbiers, France
Tél : +33 (0)4 77 53 30 48
Fax : +33 (0)4 77 53 38 61

Group {
    Group {
        StateSet {
          Uniform {
            name "color"
            type vec3 1 FloatArray 3
            {
              1 0 0 
            }
          }
          Program {
            num_shaders 1
            Shader {
              type FRAGMENT
              code {
                "uniform vec3 color;"
                "void main() {"
                "    gl_FragColor = vec4(color.rgb, 1.0);"
                "}"
              }
            }
          }
        }
        Geode {
            name 'sphere'
            nodeMask 0
            ShapeDrawable {
                Sphere {
                  Center 0 0 0
                  Radius 2.5
                }
                color 1.000 1.000 0.000 1.000
            }
        }
    }
    Geode {
        name 'box'
        ShapeDrawable {
            Box {
              Center 0 0 0
              HalfLengths 2 2 2
            }
            color 1.000 0.000 1.000 1.000
        }
    }
}
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to