light

package
v0.0.0-...-2abbad4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLightEnvironment

func ParseLightEnvironment(e *entity.Entity, dl *DirectLight, useHDR bool)

ParseLightEnvironment

func ParseLightGeneric

func ParseLightGeneric(e *entity.Entity, dl *DirectLight, useHDR bool)

ParseLightGeneric

func ParseLightSpot

func ParseLightSpot(e *entity.Entity, dl *DirectLight, list *entity.List)

ParseLightSpot

Types

type DirectLight

type DirectLight struct {
	Light worldlight.WorldLight

	PVS     []byte // accumulated domain of the light
	FaceNum int    // domain of attached lights
	TexData int    // texture source of traced lights

	SNormal mgl32.Vec3
	TNormal mgl32.Vec3
	SScale  float32
	TScale  float32
	SOffset float32
	TOffset float32

	DoRecalc      int // position, vector, spot angle, etc.
	IncrementalID uint16

	// hard-falloff lights (lights that fade to an actual zero). between m_flStartFadeDistance and
	// m_flEndFadeDistance, a smoothstep to zero will be done, so that the light goes to zero at
	// the end.
	StartFadeDistance float32
	EndFadeDistance   float32
	CapDistance       float32 // max distance to feed in
}

func NewDirectLight

func NewDirectLight(entity *entity.Entity) *DirectLight

NewDirectLight

Jump to

Keyboard shortcuts

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