mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Added color attrib
This commit is contained in:
parent
fd4c80f217
commit
a0f740720d
@ -214,7 +214,8 @@ GeomNode *LineSegs::
|
||||
create(GeomNode *previous, bool dynamic) {
|
||||
if (!_list.empty()) {
|
||||
CPT(RenderAttrib) thick = RenderModeAttrib::make(RenderModeAttrib::M_unchanged, _thick);
|
||||
CPT(RenderState) state = RenderState::make(thick);
|
||||
CPT(RenderAttrib) vtxcolor = ColorAttrib::make_vertex();
|
||||
CPT(RenderState) state = RenderState::make(thick, vtxcolor);
|
||||
|
||||
_created_data = new GeomVertexData
|
||||
("lineSegs", GeomVertexFormat::get_v3cp(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user