Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2023 Changes in this version + const GLSL_VERSION + type Postprocessor struct + Fbo uint32 + Height int32 + Prg *gls.Program + Renderer *Renderer + Tex uint32 + Vao uint32 + Width int32 + func (pp *Postprocessor) Render(fbwidth, fbheight int, render func()) + type ProgSpecs struct + type Renderer struct + func NewRenderer(gs *gls.GLS) *Renderer + func (r *Renderer) CreatePostprocessor(width, height int32, vertexShaderSource, fragmentShaderSource string) *Postprocessor + func (r *Renderer) ObjectSorting() bool + func (r *Renderer) Render(scene core.INode, cam camera.ICamera) error + func (r *Renderer) SetObjectSorting(sort bool) + 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 + GraphicMats int + Lights int + Others int + Panels int