mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
use DepthOffsetAttrib on wireframe highlight
This commit is contained in:
parent
5d9ded7299
commit
104a8c24d1
@ -21,6 +21,7 @@
|
||||
#include "pStatClient.h"
|
||||
#include "eventQueue.h"
|
||||
#include "dataGraphTraverser.h"
|
||||
#include "depthOffsetAttrib.h"
|
||||
#include "collisionNode.h"
|
||||
#include "config_framework.h"
|
||||
#include "graphicsPipeSelection.h"
|
||||
@ -90,7 +91,9 @@ open_framework(int &argc, char **&argv) {
|
||||
_data_root = NodePath("data");
|
||||
_highlight_wireframe = NodePath("wireframe");
|
||||
_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_attrib(DepthOffsetAttrib::make());
|
||||
|
||||
if (!playback_session.empty()) {
|
||||
// If the config file so indicates, create a recorder and start it
|
||||
|
Loading…
x
Reference in New Issue
Block a user