visibility

package
v0.0.0-...-d4a0833 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Leafs      []uint16
	ClusterId  int16
	SkyVisible bool
	Faces      []uint16
}

type Vis

type Vis struct {
	ClusterCache   []Cache
	VisibilityLump *visibility.Vis
	Leafs          []leaf.Leaf
	LeafFaces      []uint16
	Nodes          []node.Node
	Planes         []plane.Plane
	// contains filtered or unexported fields
}

func NewVisFromBSP

func NewVisFromBSP(file *bsp.Bsp) *Vis

func (*Vis) FindCurrentLeaf

func (vis *Vis) FindCurrentLeaf(position mgl32.Vec3) *leaf.Leaf

Test if the camera has moved, and find the current leaf if so

func (*Vis) GetPVSCacheForCluster

func (vis *Vis) GetPVSCacheForCluster(clusterId int16) *Cache

func (*Vis) PVSForCluster

func (vis *Vis) PVSForCluster(clusterId int16) []int16

Jump to

Keyboard shortcuts

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