From 8fd4a2fac2f07f4d0a544fdc32ebadef939a55ef Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 13 Feb 2004 02:49:26 +0000 Subject: [PATCH] turn off depth write for transparent parts of M_dual --- panda/src/pgraph/cullResult.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/pgraph/cullResult.cxx b/panda/src/pgraph/cullResult.cxx index 25612169ac..58a095fd57 100644 --- a/panda/src/pgraph/cullResult.cxx +++ b/panda/src/pgraph/cullResult.cxx @@ -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()); }