Documentation ¶
Index ¶
- func NewCubeVertexArrayData(left, right, top, bottom, near, far float32) graphics.VertexArrayData
- func NewExposureProbeShaderData() graphics.ProgramData
- func NewPostprocessingShaderData(toneMapping ToneMapping) graphics.ProgramData
- func NewQuadVertexArrayData(left, right, top, bottom float32) graphics.VertexArrayData
- type ShaderBuilder
- type ToneMapping
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCubeVertexArrayData ¶
func NewCubeVertexArrayData(left, right, top, bottom, near, far float32) graphics.VertexArrayData
func NewExposureProbeShaderData ¶
func NewExposureProbeShaderData() graphics.ProgramData
func NewPostprocessingShaderData ¶
func NewPostprocessingShaderData(toneMapping ToneMapping) graphics.ProgramData
func NewQuadVertexArrayData ¶
func NewQuadVertexArrayData(left, right, top, bottom float32) graphics.VertexArrayData
Types ¶
type ShaderBuilder ¶
type ShaderBuilder struct {
// contains filtered or unexported fields
}
func NewShaderBuilder ¶
func NewShaderBuilder(template string) *ShaderBuilder
func (*ShaderBuilder) AddFeature ¶
func (b *ShaderBuilder) AddFeature(feature string)
func (*ShaderBuilder) Build ¶
func (b *ShaderBuilder) Build() string
func (*ShaderBuilder) SetVersion ¶
func (b *ShaderBuilder) SetVersion(version string)
type ToneMapping ¶
type ToneMapping int
const ( ReinhardToneMapping ToneMapping = iota ExponentialToneMapping )
Click to show internal directories.
Click to hide internal directories.