radable

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: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLights

func ExtractLights(primitives *RadPrimitive, useHDR bool)

ExtractLights

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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