gomarch

package
v0.0.0-...-9f40f58 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MAX_STEPS    = 64
	SURFACE_DIST = 0.01
	MAX_DIST     = 50.0
)

Variables

This section is empty.

Functions

func Render

func Render(o Options, out io.Writer)

Types

type Options

type Options struct {
	FrameCount int
	DeltaTime  float64
	Width      int
	Height     int
	FOV        float64

	SDF        func(v vec.Vec3) float64
	CameraTick func(t float64) (position vec.Vec3, lookat vec.Vec3)
}

type RenderContext

type RenderContext struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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