scenes

package
v0.0.0-...-4f29a8f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChristianScene

func ChristianScene() func() *Scene

func EnvironmentCubeMap

func EnvironmentCubeMap() func() *Scene

func EnvironmentMap

func EnvironmentMap() func() *Scene

func GlassScene

func GlassScene() func() *Scene

func GopherScene

func GopherScene() func() *Scene

func GopherWindowScene

func GopherWindowScene() func() *Scene

func LoadImage

func LoadImage(path string) image.Image

func ModelScene

func ModelScene() func() *Scene

func OCLScene

func OCLScene() func() *Scene

func ReferenceScene

func ReferenceScene() func() *Scene

func ReflectionsScene

func ReflectionsScene() func() *Scene

func TexturedPlanetsScene

func TexturedPlanetsScene() func() *Scene

func TransparencyFLightScene

func TransparencyFLightScene() func() *Scene

func TransparencyQuadLightsScene

func TransparencyQuadLightsScene() func() *Scene

func TransparencyScene

func TransparencyScene() func() *Scene

func TransparentTeapotScene

func TransparentTeapotScene() func() *Scene

Types

type Scene

type Scene struct {
	Camera  camera.Camera
	Objects []shapes.Shape

	// Standard textures are typically 1:1, 2048x2048
	Textures []image.Image

	// Sphere map textures are typically 2:1 format, for example 3840x1920
	SphereTextures []image.Image

	// Cube textures use a 4:3 format with 6 sides forming a cross. Example is 4096x3072
	CubeTextures []image.Image
}

Jump to

Keyboard shortcuts

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