首页 > 其他分享 >threejs shader特效,分区辉光

threejs shader特效,分区辉光

时间:2023-02-23 22:22:47浏览次数:57  
标签:threejs https 渲染 shader composer 图层 区辉光

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

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

标签:threejs,https,渲染,shader,composer,图层,区辉光
From: https://www.cnblogs.com/dou-fu-gan/p/17149677.html

相关文章