使用PBR iOS将材质混合到SceneKit中的另一个材质上

时间:2018-03-23 13:01:25

标签: ios scenekit pbr

我已经在SCNNode几何体中添加了一个材质,现在我想为它添加另一种材质并将其设置为混合模式'乘以'。

我尝试了很多,却找不到办法做到这一点。如果我们将纹理混合为multiply,那么它适用于其他灯光设置,但不适用于PBR。

material.lightingModel = .physicallyBased

let image = UIImage(named: "1.PNG")
material.multiply.contents = image
material.multiply.contentsTransform = SCNMatrix4MakeScale(10, 10, 0)
material.multiply.wrapT = .repeat
material.multiply.wrapS = .repeat
material.multiply.intensity = 1.0

对此有何帮助?

enter image description here

由于

0 个答案:

没有答案