Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

RDPipelineColorBlendState

继承: RefCounted < Object

管线颜色混合状态(由 RenderingDevice 使用)。

描述

这个对象由 RenderingDevice 使用。

属性

RDPipelineColorBlendStateAttachment[]

attachments

[]

Color

blend_constant

Color(0, 0, 0, 1)

bool

enable_logic_op

false

LogicOperation

logic_op

0


属性说明

RDPipelineColorBlendStateAttachment[] attachments = []

要混合的附件。


Color blend_constant = Color(0, 0, 0, 1)

  • void set_blend_constant ( Color value )

  • Color get_blend_constant ( )

要进行混合的颜色常量。另见 RenderingDevice.draw_list_set_blend_constants


bool enable_logic_op = false

  • void set_enable_logic_op ( bool value )

  • bool get_enable_logic_op ( )

如果为 true,则执行 logic_op 中定义的逻辑运算。


LogicOperation logic_op = 0

混合时执行的逻辑运算。仅在 enable_logic_optrue 时有效。