voxel

package
v0.0.0-...-124f97e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Black = New(color.Black)
View Source
var Blue = New(color.Blue)
View Source
var Empty = T{}

voxel.Empty is an empty color voxel

View Source
var Green = New(color.Green)
View Source
var Red = New(color.Red)
View Source
var White = New(color.White)

Functions

This section is empty.

Types

type Array

type Array []T

Array is a collection of voxels

type T

type T struct {
	R, G, B byte
}

T holds color information for a single colored voxel

func New

func New(color color.T) T

New creates a new Color Voxel from a given color

type Vertex

type Vertex struct {
	X byte `vtx:"position,uint8,3"`
	Y byte `vtx:"skip"`
	Z byte `vtx:"skip"`
	N byte `vtx:"normal_id,uint8,1"`
	R byte `vtx:"color_0,uint8,3,normalize"`
	G byte `vtx:"skip"`
	B byte `vtx:"skip"`
	O byte `vtx:"occlusion,uint8,1,normalize"`
}

voxel.Vertex represents a single RGB-colored voxel

func (Vertex) Position

func (v Vertex) Position() vec3.T

Jump to

Keyboard shortcuts

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