Changeset 5dc130a in OpenModelica


Ignore:
Timestamp:
2023-03-21T17:22:34+01:00 (14 months ago)
Author:
anotheruserofgithub <96748782+anotheruserofgithub@…>
Parents:
16cbb66
git-author:
anotheruserofgithub <96748782+anotheruserofgithub@…> (03/09/23 00:07:01)
git-committer:
anotheruserofgithub <96748782+anotheruserofgithub@…> (03/21/23 17:22:34)
Message:

Set ambient color of material the same as diffuse

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/Animation/Visualization.cpp

    r16cbb66 r5dc130a  
    16351635    osg::ref_ptr<osg::Material> material = dynamic_cast<osg::Material*>(ss->getAttribute(osg::StateAttribute::MATERIAL));
    16361636    if (!material.valid()) material = new osg::Material();
     1637    material->setAmbient(osg::Material::FRONT_AND_BACK, osg::Vec4f(color.redF(), color.greenF(), color.blueF(), color.alphaF()));
    16371638    material->setDiffuse(osg::Material::FRONT_AND_BACK, osg::Vec4f(color.redF(), color.greenF(), color.blueF(), color.alphaF()));
    16381639    ss->setAttribute(material.get());
Note: See TracChangeset for help on using the changeset viewer.