Example #1
0
void
MaterialGL3::apply(osg::State& state) const
{
#ifdef OSG_GL_FIXED_FUNCTION_AVAILABLE
    osg::Material::apply(state);
#else
    state.Color(_diffuseFront.r(), _diffuseFront.g(), _diffuseFront.b(), _diffuseFront.a());
#endif
}
Example #2
0
void SolidPaint::paint(osgNVPR::Extensions* ext, osg::State& state) const {
	state.Color(_color.r(), _color.b(), _color.g(), _color.a());
}