modiyf conwave
This commit is contained in:
parent
c733281598
commit
84849a25bc
@ -165,6 +165,7 @@ target_link_libraries(
|
|||||||
osgParticle
|
osgParticle
|
||||||
osgSim
|
osgSim
|
||||||
osgWidget
|
osgWidget
|
||||||
|
osgText
|
||||||
osgEarth
|
osgEarth
|
||||||
Triton-MT-DLL
|
Triton-MT-DLL
|
||||||
libeng
|
libeng
|
||||||
|
@ -136,13 +136,13 @@ void ConeWave::CreateTexturedCone(osg::Geode* geode) {
|
|||||||
stateset->setRenderBinDetails(120, "RenderBin");
|
stateset->setRenderBinDetails(120, "RenderBin");
|
||||||
osg::ref_ptr<osg::BlendFunc> blendFunc = new osg::BlendFunc();
|
osg::ref_ptr<osg::BlendFunc> blendFunc = new osg::BlendFunc();
|
||||||
stateset->setAttributeAndModes(blendFunc, osg::StateAttribute::ON);
|
stateset->setAttributeAndModes(blendFunc, osg::StateAttribute::ON);
|
||||||
//osg::ref_ptr<osg::Program> program = new osg::Program();
|
osg::ref_ptr<osg::Program> program = new osg::Program();
|
||||||
//program->addShader(vertexShader);
|
program->addShader(vertexShader);
|
||||||
//program->addShader(fragmentShader);
|
program->addShader(fragmentShader);
|
||||||
VirtualProgram* vp = VirtualProgram::getOrCreate(outlineSS);
|
//VirtualProgram* vp = VirtualProgram::getOrCreate(outlineSS);
|
||||||
vp->setFunction("VS", VS, ShaderComp::LOCATION_VERTEX_CLIP);
|
//vp->setFunction("VS", VS, ShaderComp::LOCATION_VERTEX_CLIP);
|
||||||
vp->setFunction("FS", FS, ShaderComp::LOCATION_FRAGMENT_COLORING);
|
//vp->setFunction("FS", FS, ShaderComp::LOCATION_FRAGMENT_COLORING);
|
||||||
outline->addChild(node);
|
//outline->addChild(node);
|
||||||
|
|
||||||
baseColorUniform_ = new osg::Uniform("baseColor", baseColor_);
|
baseColorUniform_ = new osg::Uniform("baseColor", baseColor_);
|
||||||
stateset->setMode(GL_CULL_FACE, osg::StateAttribute::ON);
|
stateset->setMode(GL_CULL_FACE, osg::StateAttribute::ON);
|
||||||
|
Loading…
Reference in New Issue
Block a user