MCPcopy
hub / github.com/g3n/engine / SetUseLights

Method SetUseLights

material/material.go:188–191  ·  view source on GitHub ↗

SetUseLights sets the material use lights bit mask specifying which light types will be used when rendering the material By default the material will use all lights

(lights UseLights)

Source from the content-addressed store, hash-verified

186// light types will be used when rendering the material
187// By default the material will use all lights
188func (mat *Material) SetUseLights(lights UseLights) {
189
190 mat.useLights = lights
191}
192
193// UseLights returns the current use lights bitmask
194func (mat *Material) UseLights() UseLights {

Callers 2

NewSkyboxFunction · 0.80
InitializeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected