materials

package
v0.0.0-...-ec9fd1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2012 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebug

func NewDebug(col color.Color) goray.Material

Types

type ShinyDiffuse

type ShinyDiffuse struct {
	Color            color.Color
	Diffuse          float64
	DiffuseColorShad shader.Node

	SpecReflColor   color.Color
	SpecRefl        float64
	SpecReflShad    shader.Node
	MirrorColorShad shader.Node

	Transp, Transl         float64
	TranspShad, TranslShad shader.Node

	EmitColor color.Color
	EmitValue float64

	TransmitFilter, IOR float64
	// contains filtered or unexported fields
}

func (*ShinyDiffuse) Alpha

func (sd *ShinyDiffuse) Alpha(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector) float64

func (*ShinyDiffuse) Emit

func (*ShinyDiffuse) Eval

func (sd *ShinyDiffuse) Eval(state *goray.RenderState, sp goray.SurfacePoint, wo, wl vec64.Vector, types goray.BSDF) (col color.Color)

func (*ShinyDiffuse) Init

func (sd *ShinyDiffuse) Init()

Init initializes sd's internal parameters. This must be called before using the material.

func (*ShinyDiffuse) InitBSDF

func (sd *ShinyDiffuse) InitBSDF(state *goray.RenderState, sp goray.SurfacePoint) goray.BSDF

func (*ShinyDiffuse) MaterialFlags

func (sd *ShinyDiffuse) MaterialFlags() goray.BSDF

func (*ShinyDiffuse) Pdf

func (sd *ShinyDiffuse) Pdf(state *goray.RenderState, sp goray.SurfacePoint, wo, wi vec64.Vector, bsdfs goray.BSDF) (pdf float64)

func (*ShinyDiffuse) Reflectivity

func (sd *ShinyDiffuse) Reflectivity(state *goray.RenderState, sp goray.SurfacePoint, flags goray.BSDF) color.Color

func (*ShinyDiffuse) Sample

func (*ShinyDiffuse) ScatterPhoton

func (sd *ShinyDiffuse) ScatterPhoton(state *goray.RenderState, sp goray.SurfacePoint, wi vec64.Vector, s *goray.PhotonSample) (wo vec64.Vector, scattered bool)

func (*ShinyDiffuse) Specular

func (sd *ShinyDiffuse) Specular(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector) (reflect, refract bool, dir [2]vec64.Vector, col [2]color.Color)

Jump to

Keyboard shortcuts

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