threejs shader特效,分区辉光

分区辉光有两种实现方式:

1.单个图层两次渲染,先用带bloom的composer渲染一次,再正常渲染一次:https://github.com/mrdoob/three.js/blob/master/examples/webgl_postprocessing_unreal_bloom_selective.html
(这个是官方实现方式,较为推荐)

2.两个图层分别渲染,图层1用composer图层0正常渲染:https://discourse.threejs.org/t/solved-effectcomposer-layers/3158

posted @ 2023-02-23 22:18  dou_fu_gan  阅读(217)  评论(0编辑  收藏  举报