Documentation
¶
Index ¶
- type Option
- func WithBackground(c color.RGBA) Option
- func WithConcurrency(n int32) Option
- func WithDebug(enable bool) Option
- func WithGammaCorrection(enable bool) Option
- func WithMSAA(n int) Option
- func WithScene(s *scene.Scene) Option
- func WithShadowMap(enable bool) Option
- func WithSize(width, height int) Option
- func WithThreadLimit(n int) Option
- type Renderer
- type ShadowMap
- type ShadowMapOption
- type ShadowType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(r *Renderer)
func WithBackground ¶
func WithConcurrency ¶
func WithGammaCorrection ¶
func WithShadowMap ¶
func WithThreadLimit ¶
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is a hybrid software renderer that implements rasterization and ray tracing.
func NewRenderer ¶
NewRenderer creates a new renderer.
The renderer implements a rasterization rendering pipeline.
func (*Renderer) UpdateOptions ¶
type ShadowMap ¶
type ShadowMap struct {
// contains filtered or unexported fields
}
func NewShadowMap ¶
func NewShadowMap(opts ...ShadowMapOption) *ShadowMap
type ShadowMapOption ¶
type ShadowMapOption func(sm *ShadowMap)
func WithShadowMapBias ¶
func WithShadowMapBias(bias float64) ShadowMapOption
func WithShadowMapCamera ¶
func WithShadowMapCamera(c camera.Interface) ShadowMapOption
func WithShadowMapType ¶
func WithShadowMapType(typ ShadowType) ShadowMapOption
type ShadowType ¶
type ShadowType int
const ( ShadowTypeHard ShadowType = iota // hard shadow mapping ShadowTypePCF // percentage closer filtering ShadowTypePCSS // percentage closer soft shadows ShadowTypeVSSM // variance soft shadow mapping ShadowTypeMSM // moment shadow mapping )
Click to show internal directories.
Click to hide internal directories.