Skip to content

Commit

Permalink
Support one color for the points.
Browse files Browse the repository at this point in the history
This required a lighting change to the actor.
  • Loading branch information
manthey committed Oct 30, 2018
1 parent 79f3a98 commit c12131e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vtkjs/pointFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ var vtkjs_pointFeature = function (arg) {
mapper.setInputConnection(m_source.getOutputPort(), 1);
m_actor = vtkActor.newInstance();
m_actor.setMapper(mapper);
m_actor.getProperty().setAmbient(1);
this.renderer().contextRenderer().addActor(m_actor);
};

Expand Down Expand Up @@ -111,7 +112,6 @@ var vtkjs_pointFeature = function (arg) {
rad *= m_this.layer().map().unitsPerPixel(m_this.layer().map().zoom());
m_pointSet.getPoints().setData(position, 3);
m_source.setRadius(rad);
// TODO: This is not setting the color of the rendered points
m_actor.getProperty().setColor(clr.r, clr.g, clr.b);
m_this.buildTime().modified();
};
Expand Down

0 comments on commit c12131e

Please sign in to comment.