Documentation
¶
Index ¶
- Constants
- func NewIShaderProgram(vertexShaderFiles []string, fragmentShaderFiles []string, ...) (Shader.IShaderProgram, error)
- func NewShadowCubeMapTexture(width int32, height int32, textureType core.Type) (*core.Texture, error)
- func NewShadowMapTexture(width int32, height int32, textureType core.Type) (*core.Texture, error)
- type ShaderComponent
- type ShaderProgram
- type ShadowMap
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func NewIShaderProgram ¶
func NewShadowCubeMapTexture ¶
Types ¶
type ShaderComponent ¶
type ShaderComponent struct {
*Shader.ShaderProgramCore
}
func (*ShaderComponent) BindObject ¶
func (program *ShaderComponent) BindObject(i interface{}) error
func (*ShaderComponent) GetUniformAddress ¶
func (program *ShaderComponent) GetUniformAddress(i interface{}) (string, error)
type ShaderProgram ¶
type ShaderProgram struct {
*Shader.ShaderProgramCore
MaterialShader Material.ShaderProgram
}
func NewShaderProgram ¶
func NewShaderProgram(vertexShaderFiles []string, fragmentShaderFiles []string, geometryShaderFiles []string) (*ShaderProgram, error)
func (*ShaderProgram) BindObject ¶
func (program *ShaderProgram) BindObject(i interface{}) error
func (*ShaderProgram) GetUniformAddress ¶
func (program *ShaderProgram) GetUniformAddress(i interface{}) (string, error)
type ShadowMap ¶
type ShadowMap struct {
Camera Camera.ICamera
UpdateCameraCallback func(scene Scene.IScene, camera Camera.ICamera)
Shader Shader.IShaderProgram
FrameBuffer FrameBuffer.FrameBuffer
LightIndex int
Distance float32
TransitionDistance float32
TextureConstructor func(width int32, height int32, textureType core.Type) (*core.Texture, error)
TextureType core.Type
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.