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

Method SetTransparent

material/material.go:212–215  ·  view source on GitHub ↗

SetTransparent sets whether this material is transparent.

(state bool)

Source from the content-addressed store, hash-verified

210
211// SetTransparent sets whether this material is transparent.
212func (mat *Material) SetTransparent(state bool) {
213
214 mat.transparent = state
215}
216
217// Transparent returns whether this material has been set as transparent.
218func (mat *Material) Transparent() bool {

Callers 3

initializeMethod · 0.80
InitializeMethod · 0.80
loadMaterialPBRMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected