Versions in this module Expand all Collapse all v0 v0.0.1 Jun 24, 2021 Changes in this version + type BlinnPhongMaterial struct + func (m *BlinnPhongMaterial) AmbientOcclusion() bool + func (m *BlinnPhongMaterial) FragmentShader(col color.RGBA, x, n, fN, c math.Vector, ls []light.Source, ...) color.RGBA + func (m *BlinnPhongMaterial) ReceiveShadow() bool + func (m *BlinnPhongMaterial) Texture() *image.Texture + func (m *BlinnPhongMaterial) VertexShader(v primitive.Vertex, uniforms map[string]interface{}) primitive.Vertex + type BlinnPhongMaterialOption func(m *BlinnPhongMaterial) + func WithBlinnPhongAmbientOcclusion(enable bool) BlinnPhongMaterialOption + func WithBlinnPhongFactors(Kdiff, Kspec float64) BlinnPhongMaterialOption + func WithBlinnPhongFlatShading(enable bool) BlinnPhongMaterialOption + func WithBlinnPhongShadow(enable bool) BlinnPhongMaterialOption + func WithBlinnPhongShininess(p float64) BlinnPhongMaterialOption + func WithBlinnPhongTexture(tex *image.Texture) BlinnPhongMaterialOption + type Material interface + AmbientOcclusion func() bool + FragmentShader func(col color.RGBA, x, n, fn, camera math.Vector, ls []light.Source, ...) color.RGBA + ReceiveShadow func() bool + Texture func() *image.Texture + VertexShader func(v primitive.Vertex, uniforms map[string]interface{}) primitive.Vertex + func NewBlinnPhong(opts ...BlinnPhongMaterialOption) Material