Skip to content

Conversation

@ngokevin
Copy link
Member

Description:

Allow for vertex or face coloring.

| shader | Which material to use. Defaults to the [standard material][standard]. Can be set to the [flat material][flat] or to a registered custom material. | standard |
| side | Which sides of the mesh to render. Can be one of `front`, `back`, or `double`. | front |
| transparent | Whether material is transparent. Transparent entities are rendered after non-transparent entities. | false |
| vertexColors | Whether to use vertex or face colors to shade the material. Can be one of `none`, `vertex`, or `face`. | none |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is vertexColors a good name for the property? What about geometryColoring, geometryShading....?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the name either but I agree that if we're consistent with three.js we should keep using it https://github.com/mrdoob/three.js/blob/dev/src/materials/Material.js#L27 :\

@dmarcos dmarcos merged commit 5df5cd5 into aframevr:master Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants