lighting

package
v0.0.0-...-cec5250 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2017 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Light

type Light interface{}

Light defines types that contain all the functionality of a light source

type PointLight

type PointLight struct {
	Position  math3d.Vector3 `json:"position"`
	Intensity image.Color    `json:"intensity"`
}

PointLight defines a punctual light in 3D space

func PointLightsFromMap

func PointLightsFromMap(m []map[string]interface{}) []PointLight

PointLightsFromMap returns the point light defined in the map

Jump to

Keyboard shortcuts

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