Documentation ¶
Index ¶
- func NewDebug(col color.Color) goray.Material
- type ShinyDiffuse
- func (sd *ShinyDiffuse) Alpha(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector) float64
- func (sd *ShinyDiffuse) Emit(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector) color.Color
- func (sd *ShinyDiffuse) Eval(state *goray.RenderState, sp goray.SurfacePoint, wo, wl vec64.Vector, ...) (col color.Color)
- func (sd *ShinyDiffuse) Init()
- func (sd *ShinyDiffuse) InitBSDF(state *goray.RenderState, sp goray.SurfacePoint) goray.BSDF
- func (sd *ShinyDiffuse) MaterialFlags() goray.BSDF
- func (sd *ShinyDiffuse) Pdf(state *goray.RenderState, sp goray.SurfacePoint, wo, wi vec64.Vector, ...) (pdf float64)
- func (sd *ShinyDiffuse) Reflectivity(state *goray.RenderState, sp goray.SurfacePoint, flags goray.BSDF) color.Color
- func (sd *ShinyDiffuse) Sample(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector, ...) (col color.Color, wi vec64.Vector)
- func (sd *ShinyDiffuse) ScatterPhoton(state *goray.RenderState, sp goray.SurfacePoint, wi vec64.Vector, ...) (wo vec64.Vector, scattered bool)
- func (sd *ShinyDiffuse) Specular(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector) (reflect, refract bool, dir [2]vec64.Vector, col [2]color.Color)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (sd *ShinyDiffuse) Emit(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector) color.Color
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 (sd *ShinyDiffuse) Sample(state *goray.RenderState, sp goray.SurfacePoint, wo vec64.Vector, s *goray.MaterialSample) (col color.Color, wi vec64.Vector)
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)
Click to show internal directories.
Click to hide internal directories.