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

Function findEffect

loader/collada/material.go:245–254  ·  view source on GitHub ↗
(dom *Collada, uri string)

Source from the content-addressed store, hash-verified

243}
244
245func findEffect(dom *Collada, uri string) *Effect {
246
247 id := strings.TrimPrefix(uri, "#")
248 for _, effect := range dom.LibraryEffects.Effect {
249 if effect.Id == id {
250 return effect
251 }
252 }
253 return nil
254}
255
256func findProfileCOMMON(ef *Effect) *ProfileCOMMON {
257

Callers 1

NewMaterialMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected