Documentation ¶
Index ¶
- type Box
- type Camera
- type Color
- type ColorDKL
- type ColorName
- type Cone
- type Material
- type Plane
- type Renderer
- func (r *Renderer) AddShape(s Shape)
- func (r *Renderer) AddShapeFromJSON(shapeType string, shape map[string]interface{})
- func (r *Renderer) AssembleScene() error
- func (r *Renderer) AttachCamera(c Camera)
- func (r *Renderer) ClearScene()
- func (r *Renderer) Close()
- func (r *Renderer) Render() (image.Image, error)
- func (r *Renderer) SetBounces(b int32)
- func (r *Renderer) SetSamples(s int32)
- type RobTexture
- type Scene
- type Shape
- type Sphere
- type Triangle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
func (*Box) ShapeToGLSLString ¶
type Color ¶
type Color interface {
// contains filtered or unexported methods
}
func ColorfromJSON ¶
func ColorfromJSON(c interface{}) Color
type Cone ¶
type Cone struct {
Position, PointA, PointB [3]float64
RadiusA, RadiusB float64
Material Material
Color Color
}
func (*Cone) ShapeToGLSLString ¶
type Plane ¶
func (*Plane) ShapeToGLSLString ¶
type Renderer ¶
type Renderer struct {
WindowWidth, WindowHeight float64
VAO uint32
// contains filtered or unexported fields
}
func NewRenderer ¶
func NewRendererFromBytes ¶
func NewRendererFromJSON ¶
func (*Renderer) AddShapeFromJSON ¶
func (*Renderer) AssembleScene ¶
func (*Renderer) AttachCamera ¶
func (*Renderer) ClearScene ¶
func (r *Renderer) ClearScene()
func (*Renderer) SetBounces ¶
func (*Renderer) SetSamples ¶
type RobTexture ¶
type RobTexture struct {
// contains filtered or unexported fields
}
func RobNewTexture ¶
func RobNewTexture(img image.Image, wrapR, wrapS int32) (*RobTexture, error)
func (*RobTexture) Bind ¶
func (tex *RobTexture) Bind(texUnit uint32)
func (*RobTexture) SetUniform ¶
func (tex *RobTexture) SetUniform(uniformLoc int32) error
func (*RobTexture) UnBind ¶
func (tex *RobTexture) UnBind()
type Sphere ¶
func (*Sphere) ShapeToGLSLString ¶
Source Files ¶
- blit.go
- build_shaders.go
- camera_glsl.go
- color_glsl.go
- const.go
- const_globals_glsl.go
- filt_blur_glsl.go
- filt_main_glsl.go
- fllt_header_glsl.go
- fxaa_apply_glsl.go
- fxaa_header_glsl.go
- fxaa_main_glsl.go
- header_uniforms_glsl.go
- main_glsl.go
- material_glsl.go
- opengl.go
- pathtrace_glsl.go
- rand_glsl.go
- ray_algebra_glsl.go
- renderer.go
- scene_glsl.go
- shapes_glsl.go
- sky_glsl.go
- spectra_glsl.go
- surfel_glsl.go
- texture_glsl.go
- tonemap_glsl.go
- utils.go
- vert_glsl.go
Click to show internal directories.
Click to hide internal directories.