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

Function findNewparam

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

Source from the content-addressed store, hash-verified

265}
266
267func findNewparam(dom *Collada, uri string) *Newparam {
268
269 id := strings.TrimPrefix(uri, "#")
270 for _, effect := range dom.LibraryEffects.Effect {
271 for _, prof := range effect.Profile {
272 pc, ok := prof.(*ProfileCOMMON)
273 if !ok {
274 continue
275 }
276 for _, np := range pc.Newparam {
277 if np.Sid == id {
278 return np
279 }
280 }
281 }
282 }
283 return nil
284}
285
286func findImage(dom *Collada, uri string) *Image {
287

Callers 1

NewTexture2DMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected