A nice introduction to material and textures.
Diffuse, Bump, Specular, and Transparent Textures.
Parameter | Details |
---|---|
color | Numeric value of the RGB component of the color. |
intensity | Numeric value of the light's strength/intensity. |
fov | Camera frustum vertical field of view. |
aspect | Camera frustum aspect ratio. |
near | Camera frustum near plane. |
far | Camera frustum far plane. |
radius | sphere radius. Default is 50. |
widthSegments | number of horizontal segments. Minimum value is 3, and the default is 8. |
heightSegments | number of vertical segments. Minimum value is 2, and the default is 6. |
phiStart | specify horizontal starting angle. Default is 0. |
phiLength | specify horizontal sweep angle size. Default is Math.PI * 2. |
thetaStart | specify vertical starting angle. Default is 0. |
thetaLength | specify vertical sweep angle size. Default is Math.PI. |