Sp3dMaterial constructor
Sp3dMaterial(})
Constructor
- bg : Background color
- isFill : If true, fill by bg color.
- strokeWidth : Stroke width.
- strokeColor : Stroke color.
- imageIndex : Invalid if null. When fill is enabled and there are 4 vertex, fill with image with the clockwise order as the vertices from the upper left.
- textureCoordinates : You can specify the part of the image that you want to cut out and use. Use by specifying the coordinate information for the image. Specify the coordinates counterclockwise with a triangle(3 vertices) or rectangle(There are two triangles. 6 vertices).
- name : The material name.
- option : Optional attributes that may be added for each app.
Implementation
Sp3dMaterial(this.bg, this.isFill, this.strokeWidth, this.strokeColor,
{this.imageIndex, this.textureCoordinates, this.name, this.option});