displacement

package
v0.0.0-...-d35cbbc Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Overview

Package displacement implements functions to apply displacement maps to triangles and meshes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDisplacementMap

func ApplyDisplacementMap(triangles []*hitable.Triangle, displacementMap texture.Texture, min, max float64) ([]*hitable.Triangle, error)

ApplyDisplacementMap tessellates the triangles and applies the displacement map to all of them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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