mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
If alpha rejection was forced, we also need to force depth_write and depth_check
This commit is contained in:
parent
034ebf8ffd
commit
75b462b974
2 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue