【问题标题】:Global composite operation in three.js三.js中的全局复合操作
【发布时间】:2015-09-21 03:23:38
【问题描述】:

Globalcomposite 在 html5 画布中可用。它在threejs中可用吗?如何在three.js中实现destination out复合操作?

谢谢。

【问题讨论】:

    标签: three.js globalcompositeoperation


    【解决方案1】:
    • 如果您使用three.js 'CanvasRenderers,您可以使用globalCompositeOperation,因为它们用于2d 上下文。
    • 如果您使用webgl 上下文,基本上一切都可以使用着色器。正如 Shiladittya 的评论所述,three.js 还提供了blending modes(参见this example)。它们在材料属性blending 中可用。

    【讨论】:

    • 三个js中有一个混合功能,可以支持减法、加法和自定义混合。
    • @ShiladittyaChakraborty 你是对的,我编辑了我的答案
    猜你喜欢
    • 2023-03-09
    • 2015-01-04
    • 1970-01-01
    • 2010-12-10
    • 2020-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-04
    相关资源
    最近更新 更多