Documentation ¶
Index ¶
- type Scene
- func (s *Scene) AddGeom(geom core.Geom) error
- func (s *Scene) AddLight(light core.Light) error
- func (s *Scene) LightsPrepare(sg *core.ShaderContext)
- func (s *Scene) PreRender() error
- func (s *Scene) Trace(ray *core.Ray, sg *core.ShaderContext) bool
- func (s *Scene) TraceElems(ray *core.Ray, sc *core.ShaderContext, base, count int) bool
- func (s *Scene) TraceMotionElems(time float32, key, key2 int, ray *core.Ray, sc *core.ShaderContext, ...) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
Scene is the default scene type.
func (*Scene) LightsPrepare ¶
func (s *Scene) LightsPrepare(sg *core.ShaderContext)
LightsPrepare returns the list of lights.
func (*Scene) Trace ¶
Trace returns true if ray hits something. Usually this is the first hit along the ray unless ray.Type &= RayTypeShadow.
func (*Scene) TraceElems ¶
TraceElems implements qbvh.Geom.
Click to show internal directories.
Click to hide internal directories.