Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKDTree ¶
func GenerateKDTree(primitives *RadPrimitive)
GenerateKDTree Build KD Tree to handling faces per leaf
Types ¶
type RadPrimitive ¶
type RadPrimitive struct { // 1:1 Lump data extracts Planes []plane.Plane Vertexes []mgl32.Vec3 Edges [][2]uint16 SurfEdges []int32 Models []model.Model // Modified/derived lump datas Entities entity.List TexDataStringTable texdatastringtable.TexDataStringTable WorldLights []light.DirectLight AmbientLight light.DirectLight LightSamples []mgl32.Vec3 IsHDR bool // contains filtered or unexported fields }
func GenerateRadiosityPrimitives ¶
func GenerateRadiosityPrimitives(file *bsp.Bsp) (*RadPrimitive, error)
func (*RadPrimitive) PrepareAmbientSamples ¶
func (f *RadPrimitive) PrepareAmbientSamples()
PrepareAmbientSamples
Click to show internal directories.
Click to hide internal directories.