render.DrawSphere
render.DrawSphere( Vector position, number radius, number longitudeSteps, number latitudeSteps, table color = Color( 255, 255, 255 ) )
Description
Draws a sphere in 3D space. The material previously set with render.SetMaterial will be applied the sphere's surface.
See also render.DrawWireframeSphere for a wireframe equivalent.
This is a rendering function that requires a 3d rendering context.
This means that it will only work in 3d Rendering Hooks.
Arguments
2 number radius
Radius of the sphere. Negative radius will make the sphere render inwards rather than outwards.
3 number longitudeSteps
The number of longitude steps. This controls the quality of the sphere. Higher quality will lower performance significantly. 50 is a good number to start with.
4 number latitudeSteps
The number of latitude steps. This controls the quality of the sphere. Higher quality will lower performance significantly. 50 is a good number to start with.
Example
This will draw a blue, half-translucent sphere (force field) at the position local player is looking.