Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scene ¶
type Scene struct { Camera camera.PinHole `json:"camera"` Shapes []shape.Shape `json:"shapes"` Lights []lighting.PointLight `json:"lights"` }
Scene defines a 3D scene that holds volumetric shapes
func LoadSceneFile ¶
LoadSceneFile loads a scene file to a scene object
func (*Scene) AddLight ¶
func (s *Scene) AddLight(aLightsource lighting.PointLight)
AddLight adds a light to the scene.
func (*Scene) SaveSceneFile ¶
SaveSceneFile saves the scene as a file that can be loaded later
Click to show internal directories.
Click to hide internal directories.