[][src]Module tray_rust::geometry::sphere

Defines a Sphere at the origin which implements the Geometry, Boundable and Sampleable traits

Scene Usage Example

The sphere takes a single parameter to specify its radius.

"geometry": {
    "type": "sphere",
    "radius": 2.5
}

Structs

Sphere

A sphere with user-specified radius located at the origin.