Browse Source

use DepthOffsetAttrib on wireframe highlight

David Rose 19 years ago
parent
commit
104a8c24d1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/framework/pandaFramework.cxx

+ 3 - 0
panda/src/framework/pandaFramework.cxx

@@ -21,6 +21,7 @@
 #include "pStatClient.h"
 #include "pStatClient.h"
 #include "eventQueue.h"
 #include "eventQueue.h"
 #include "dataGraphTraverser.h"
 #include "dataGraphTraverser.h"
+#include "depthOffsetAttrib.h"
 #include "collisionNode.h"
 #include "collisionNode.h"
 #include "config_framework.h"
 #include "config_framework.h"
 #include "graphicsPipeSelection.h"
 #include "graphicsPipeSelection.h"
@@ -90,7 +91,9 @@ open_framework(int &argc, char **&argv) {
   _data_root = NodePath("data");
   _data_root = NodePath("data");
   _highlight_wireframe = NodePath("wireframe");
   _highlight_wireframe = NodePath("wireframe");
   _highlight_wireframe.set_render_mode_wireframe(1);
   _highlight_wireframe.set_render_mode_wireframe(1);
+  _highlight_wireframe.set_texture_off(1);
   _highlight_wireframe.set_color(1.0f, 0.0f, 0.0f, 1.0f, 1);
   _highlight_wireframe.set_color(1.0f, 0.0f, 0.0f, 1.0f, 1);
+  _highlight_wireframe.set_attrib(DepthOffsetAttrib::make());
 
 
   if (!playback_session.empty()) {
   if (!playback_session.empty()) {
     // If the config file so indicates, create a recorder and start it
     // If the config file so indicates, create a recorder and start it