Creates a new Primitive and assigns an unique id to it.
The optional parameter shader can be used to set a shader for this
primitive. If no shader is assigned, a default AmbientShader will
be created.
Source
Primitive([Shader this._shader]) : id = new IdGen().nextId() {
if (_shader == null) {
_shader = new AmbientShader(new Vector4(1.0,0.0,0.0,0.0));
}
}