Versions in this module Expand all Collapse all v0 v0.1.0 Mar 14, 2019 Changes in this version + const GLSL_VERSION + type ProgSpecs struct + type Renderer struct + func NewRenderer(gs *gls.GLS) *Renderer + func (r *Renderer) AddChunk(name, source string) + func (r *Renderer) AddDefaultShaders() error + func (r *Renderer) AddProgram(name, vertex, frag string, others ...string) + func (r *Renderer) AddShader(name, source string) + func (r *Renderer) ObjectSorting() bool + func (r *Renderer) Panel3D() gui.IPanel + func (r *Renderer) Render(icam camera.ICamera) (bool, error) + func (r *Renderer) SetGui(gui gui.IPanel) + func (r *Renderer) SetGuiPanel3D(panel3D gui.IPanel) + func (r *Renderer) SetObjectSorting(sort bool) + func (r *Renderer) SetScene(scene core.INode) + func (r *Renderer) Stats() Stats + type ShaderSpecs struct + AmbientLightsMax int + Defines gls.ShaderDefines + DirLightsMax int + MatTexturesMax int + Name string + PointLightsMax int + ShaderUnique bool + SpotLightsMax int + UseLights material.UseLights + Version string + type Shaman struct + func NewShaman(gs *gls.GLS) *Shaman + func (sm *Shaman) AddChunk(name, source string) + func (sm *Shaman) AddDefaultShaders() error + func (sm *Shaman) AddProgram(name, vertexName, fragName string, others ...string) + func (sm *Shaman) AddShader(name, source string) + func (sm *Shaman) GenProgram(specs *ShaderSpecs) (*gls.Program, error) + func (sm *Shaman) Init(gs *gls.GLS) + func (sm *Shaman) SetProgram(s *ShaderSpecs) (bool, error) + type Stats struct + Graphics int + Lights int + Others int + Panels int