env

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const SPHUnits = 32

Variables

View Source
var KProbe = vk.NewKey()

KProbe can be used to access current probe from Phase

Functions

This section is empty.

Types

type AmbientLight added in v0.20.1

type AmbientLight struct {
	Intensity mgl32.Vec3
}

func (*AmbientLight) Process added in v0.20.1

func (al *AmbientLight) Process(pi *vscene.ProcessInfo)

type EnvFrame added in v0.20.1

type EnvFrame interface {
	// Add probe to frame
	AddEnvironment(SPH [9]mgl32.Vec4, ubfImage vmodel.ImageIndex, pi *vscene.ProcessInfo)
}

type EquiRectBGNode

type EquiRectBGNode struct {
	// contains filtered or unexported fields
}

Render equirectangular projection image as background

func NewEquiRectBGNode

func NewEquiRectBGNode(ctx vk.APIContext, dev *vk.Device, far float32, bgKind string, bgContent []byte) *EquiRectBGNode

func (*EquiRectBGNode) Dispose

func (e *EquiRectBGNode) Dispose()

func (*EquiRectBGNode) Draw

func (eq *EquiRectBGNode) Draw(dc *vmodel.DrawContext)

func (*EquiRectBGNode) Process

func (eq *EquiRectBGNode) Process(pi *vscene.ProcessInfo)

type GrayBg

type GrayBg struct {
	// Base color at horizon
	BaseColor mgl32.Vec4
	// Color up (typically most intense color). DownColor is BaseColor - (UpColor - BaseColor)
	UpColor mgl32.Vec4
}

func NewGrayBG

func NewGrayBG() *GrayBg

func (*GrayBg) Draw

func (g *GrayBg) Draw(dc *vmodel.DrawContext)

func (*GrayBg) Process

func (g *GrayBg) Process(pi *vscene.ProcessInfo)

type Probe

type Probe struct {
	SPH [9]mgl32.Vec4
	// contains filtered or unexported fields
}

func NewProbe

func NewProbe(ctx vk.APIContext, dev *vk.Device) *Probe

func (*Probe) Dispose

func (p *Probe) Dispose()

func (*Probe) Process

func (p *Probe) Process(pi *vscene.ProcessInfo)

func (*Probe) Update

func (p *Probe) Update()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL