warrenm / GLTFKit2

A glTF 2.0 asset loader and exporter for Objective-C and Swift.
MIT License
159 stars 29 forks source link

How add opacity from model? #31

Closed kourion11 closed 1 year ago

kourion11 commented 1 year ago

When adding transparency to the model, it does not work..

warrenm commented 1 year ago

Please describe what you’re trying to do, provide the exact steps you’re taking, and if possible, provide a glTF file that illustrates the issue.

kourion11 commented 1 year ago

I do this: let source = GLTFSCNSceneSource(asset: asset) if let defaultScene = source.defaultScene { let node = defaultScene.rootNode node.opacity = 0.3

warrenm commented 1 year ago

This issue has nothing to do with GLTFKit2. I recommend learning about blend modes, transparency modes, and related topics in SceneKit, and asking questions on StackOverflow if you continue to have difficulty.

kourion11 commented 1 year ago

This issue has nothing to do with GLTFKit2. I recommend learning about blend modes, transparency modes, and related topics in SceneKit, and asking questions on StackOverflow if you continue to have difficulty.

Ok, thanks