Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NormalShader ¶ added in v0.2.0
type NormalShader struct{}
NormalShader outputs the normals of the ray hitpoint
type PathTracingShader ¶
type PathTracingShader struct {
MaxDepth int
}
PathTracingShader is the full raytracing shader
type RenderConfig ¶
type RenderConfig struct { SamplesPerPixel int Shader Shader PostProcessor post.PostProcessor }
RenderConfig is input to the ray tracer for how the image should be rendered
type RenderProgress ¶
RenderProgress is progress reported back to the caller of the raytrace function
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer is a central part of the raytracer responsible for controlling the process reporting back progress to the caller
func NewRenderer ¶
func NewRenderer(scene *Scene, output chan<- RenderProgress, abort <-chan bool) (*Renderer, error)
NewRenderer creates a new renderer given a scene and channels for communicating with the caller
type Scene ¶
type Scene struct { World hittable.Hittable Camera camera.CameraConfig BackgroundColor geo.Vec3 RenderConfig RenderConfig }
Scene contains all information needed to render an image
Click to show internal directories.
Click to hide internal directories.