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
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 (*GrayBg) Draw ¶
func (g *GrayBg) Draw(dc *vmodel.DrawContext)
func (*GrayBg) Process ¶
func (g *GrayBg) Process(pi *vscene.ProcessInfo)
Click to show internal directories.
Click to hide internal directories.