If alpha rejection was forced, we also need to force depth_write and depth_check

actorid
scrawl 12 years ago
parent 034ebf8ffd
commit 75b462b974

@ -771,6 +771,7 @@ static Ogre::String getMaterial(const Nif::NiTriShape *shape, const Ogre::String
{
alphaFlags = (1<<9) | (6<<10); /* alpha_rejection enabled, greater_equal */
alphaTest = result.second;
depthFlags = (1<<0) | (1<<1); // depth_write on, depth_check on
}
if((alphaFlags&1))

@ -14,6 +14,7 @@ material openmw_objects_base
is_transparent false // real transparency, alpha rejection doesn't count here
scene_blend default
depth_write default
depth_check default
alpha_rejection default
transparent_sorting default
@ -38,6 +39,7 @@ material openmw_objects_base
scene_blend $scene_blend
alpha_rejection $alpha_rejection
depth_write $depth_write
depth_check $depth_check
transparent_sorting $transparent_sorting
texture_unit diffuseMap

Loading…
Cancel
Save