Skip to content

Conversation

@ngokevin
Copy link
Member

Description: registerGeometry, similar to registerShader. Cleans up the geometry component, allows us to define a different schema per geometry type, allows us to set different defaults per geometry type, opens up another door for extensibility and sharing.

Prerequisite to geometry caching system and automatically using buffer geometries.

  • docs

Changes proposed:

@ngokevin ngokevin changed the title registerGeometry API Mar 31, 2016
@ngokevin ngokevin changed the title [wip] registerGeometry API Apr 1, 2016
@ngokevin ngokevin changed the title registerGeometry API Apr 1, 2016
@ngokevin
Copy link
Member Author

ngokevin commented Apr 1, 2016

ready for r?, going to be documenting in the meantime.

segmentsHeight: {default: 18, min: 0, type: 'int'},
segmentsRadial: {default: 36, min: 0, type: 'int'},
thetaLength: {default: 360, min: 0},
thetaStart: {default: 0}
Copy link
Member

Choose a reason for hiding this comment

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

missing min: 0?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think negative thetaStart is valid.

@ngokevin ngokevin force-pushed the geometryapi branch 2 times, most recently from 6236860 to b29b372 Compare April 4, 2016 18:44
@ngokevin
Copy link
Member Author

ngokevin commented Apr 4, 2016

updated

@dmarcos dmarcos merged commit a7bf7ca into aframevr:master Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants