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

Method AddTexture

material/material.go:344–347  ·  view source on GitHub ↗

AddTexture adds the specified Texture2d to the material

(tex *texture.Texture2D)

Source from the content-addressed store, hash-verified

342
343// AddTexture adds the specified Texture2d to the material
344func (mat *Material) AddTexture(tex *texture.Texture2D) {
345
346 mat.textures = append(mat.textures, tex)
347}
348
349// RemoveTexture removes the specified Texture2d from the material
350func (mat *Material) RemoveTexture(tex *texture.Texture2D) {

Callers 13

NewSkyboxFunction · 0.80
SetBaseColorMapMethod · 0.80
SetNormalMapMethod · 0.80
SetOcclusionMapMethod · 0.80
SetEmissiveMapMethod · 0.80
NewImageFromTexFunction · 0.80
SetTextureMethod · 0.80
SetTextMethod · 0.80
setTextCaretMethod · 0.80
newPhongMaterialMethod · 0.80
loadMaterialCommonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected