mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
turn off depth write for transparent parts of M_dual
This commit is contained in:
parent
4e8641d6fa
commit
8fd4a2fac2
@ -263,6 +263,7 @@ get_dual_transparent_state() {
|
||||
// ones that may have been decaled onto.
|
||||
state = RenderState::make(AlphaTestAttrib::make(AlphaTestAttrib::M_greater, 0.0f),
|
||||
TransparencyAttrib::make(TransparencyAttrib::M_alpha),
|
||||
DepthWriteAttrib::make(DepthWriteAttrib::M_off),
|
||||
RenderState::get_max_priority());
|
||||
}
|
||||
|
||||
@ -300,6 +301,7 @@ get_dual_transparent_state_decals() {
|
||||
// the decals where the pixels are 1.0.
|
||||
state = RenderState::make(AlphaTestAttrib::make(AlphaTestAttrib::M_less, dual_opaque_level),
|
||||
TransparencyAttrib::make(TransparencyAttrib::M_alpha),
|
||||
DepthWriteAttrib::make(DepthWriteAttrib::M_off),
|
||||
RenderState::get_max_priority());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user