Sphere
HC
Graphics
Drawing filled shapes
Sphere
Sphere radius
(Sphere radius slices stacks)
command drawing a sphere with radius in perspective mode.
The optional arguments slices and stacks are integer numbers, which allow finer control about the drawing. They should be not to big (about 500 maximal), because else the drawing will take ages.
Example:
Examples:
References:
castShadows(2), enableShadows(2), setDepthFunc(2), Release Notes for Version 4.65, Release Notes for Version 4.672, Release Notes for Version 4.685, Shadows, orthographic, perspective, setLightAmbient, setLightDiffuse, setLightPos, setLightSpecular, setMaterialShininess, setShadowColor, setSpherePos