Can we render shadow on a transparent Plane in SceneKit

前端 未结 2 1672
自闭症患者
自闭症患者 2020-12-18 12:39

I have used shader modifiers for Plane but its not working. Can anyone suggest me how to solve it?

let myShaderfragment = \"#pragma transparent;\\n\" + \"_ou         


        
2条回答
  •  醉梦人生
    2020-12-18 13:21

    There's a dedicated lighting model now (SCNLightingModelShadowOnly) to only render shadows

提交回复
热议问题