mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-26 02:38:04 +00:00
fix distortion breaking in first person meshes
This commit is contained in:
parent
7d884747fa
commit
45362e0ede
@ -37,7 +37,8 @@ namespace SceneUtil
|
|||||||
|
|
||||||
osg::StateSet* stateset = node.getOrCreateStateSet();
|
osg::StateSet* stateset = node.getOrCreateStateSet();
|
||||||
|
|
||||||
stateset->setRenderBinDetails(14, "Distortion", osg::StateSet::OVERRIDE_RENDERBIN_DETAILS);
|
stateset->setNestRenderBins(false);
|
||||||
|
stateset->setRenderBinDetails(14, "Distortion", osg::StateSet::OVERRIDE_PROTECTED_RENDERBIN_DETAILS);
|
||||||
stateset->addUniform(new osg::Uniform("distortionStrength", distortionStrength));
|
stateset->addUniform(new osg::Uniform("distortionStrength", distortionStrength));
|
||||||
|
|
||||||
stateset->setAttributeAndModes(depth, osg::StateAttribute::ON);
|
stateset->setAttributeAndModes(depth, osg::StateAttribute::ON);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user