mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-24 04:43:49 +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();
|
||||
|
||||
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->setAttributeAndModes(depth, osg::StateAttribute::ON);
|
||||
|
Loading…
x
Reference in New Issue
Block a user