render

package
v0.0.0-...-ddc071b Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PBRMaterial

type PBRMaterial struct {
	Name                     string
	ShaderID                 string
	BaseColorTexture         TextureID
	NormalTexture            TextureID
	OcculusionTexture        TextureID
	EmmissiveTexture         TextureID
	AmbientOcclusionTexture  TextureID
	DisplacementTexture      TextureID
	MetallicRoughnessTexture TextureID //Blue Metalness/Green Roughnes
	BaseColor                [4]float32
	MetallicFactor           float32
	RoughnessFactor          float32
}

PBRMaterial Type Represents a ready to use Metallic Roughness Based material For rendering

type TextureID

type TextureID struct {
	Index    int32
	UVCoord  int32
	Scale    float32
	Strength float32
}

Jump to

Keyboard shortcuts

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