mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-02 01:21:08 -04:00
Fix text colorMode (Bug #3815) and render bin
This commit is contained in:
parent
9e7ade4ba4
commit
6a745cb2cc
@ -3,6 +3,7 @@
|
|||||||
#include <boost/lexical_cast.hpp>
|
#include <boost/lexical_cast.hpp>
|
||||||
|
|
||||||
#include <osg/AutoTransform>
|
#include <osg/AutoTransform>
|
||||||
|
#include <osg/Material>
|
||||||
#include <osg/Geode>
|
#include <osg/Geode>
|
||||||
#include <osg/Group>
|
#include <osg/Group>
|
||||||
#include <osgText/Text>
|
#include <osgText/Text>
|
||||||
@ -75,7 +76,10 @@ CSVRender::CellMarker::CellMarker(
|
|||||||
mMarkerNode->setAutoRotateMode(osg::AutoTransform::ROTATE_TO_SCREEN);
|
mMarkerNode->setAutoRotateMode(osg::AutoTransform::ROTATE_TO_SCREEN);
|
||||||
mMarkerNode->setAutoScaleToScreen(true);
|
mMarkerNode->setAutoScaleToScreen(true);
|
||||||
mMarkerNode->getOrCreateStateSet()->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
|
mMarkerNode->getOrCreateStateSet()->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF);
|
||||||
mMarkerNode->getOrCreateStateSet()->setRenderBinDetails(osg::StateSet::TRANSPARENT_BIN + 1, "RenderBin");
|
mMarkerNode->getOrCreateStateSet()->setRenderBinDetails(11, "RenderBin");
|
||||||
|
osg::ref_ptr<osg::Material> mat = new osg::Material;
|
||||||
|
mat->setColorMode(osg::Material::AMBIENT_AND_DIFFUSE);
|
||||||
|
mMarkerNode->getOrCreateStateSet()->setAttribute(mat);
|
||||||
|
|
||||||
mMarkerNode->setUserData(new CellMarkerTag(this));
|
mMarkerNode->setUserData(new CellMarkerTag(this));
|
||||||
mMarkerNode->setNodeMask(Mask_CellMarker);
|
mMarkerNode->setNodeMask(Mask_CellMarker);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user