Added color attrib

This commit is contained in:
Josh Yelon 2008-05-06 21:29:14 +00:00
parent fd4c80f217
commit a0f740720d

View File

@ -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(),