三.js中的全局复合操作
Posted
技术标签:
【中文标题】三.js中的全局复合操作【英文标题】:Global composite operation in three.js 【发布时间】:2015-09-21 03:23:38 【问题描述】:Globalcomposite 在 html5 画布中可用。它在threejs中可用吗?如何在three.js中实现destination out复合操作?
谢谢。
【问题讨论】:
【参考方案1】: 如果您使用three.js 'CanvasRenderers
,您可以使用globalCompositeOperation
,因为它们用于2d
上下文。
如果您使用webgl
上下文,基本上一切都可以使用着色器。正如 Shiladittya 的评论所述,three.js 还提供了blending modes(参见this example)。它们在材料属性blending
中可用。
【讨论】:
三个js中有一个混合功能,可以支持减法、加法和自定义混合。 @ShiladittyaChakraborty 你是对的,我编辑了我的答案以上是关于三.js中的全局复合操作的主要内容,如果未能解决你的问题,请参考以下文章