Rendering a transparent shell

后端 未结 1 1182
礼貌的吻别
礼貌的吻别 2020-11-29 13:06

Let\'s say I\'m rendering Wonder Woman piloting her Invisible Jet. The jet is made up of multiple meshes, and is mostly transparent. Where the transparent meshes overlap, it

相关标签:
1条回答
  • 2020-11-29 13:30

    If you want to render overlapping transparent faces, but do not want the overlapping regions to be darker, you can implement a trick: render the faces first with

    material.colorWrite = false;
    

    and then render them a second time with

    material.colorWrite = true;
    

    fiddle: http://jsfiddle.net/yrfuy4j8/

    your fiddle: http://jsfiddle.net/5eku8k37/

    three.js r.76

    0 讨论(0)
提交回复
热议问题