Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

RDPipelineColorBlendState

繼承: RefCounted < Object

管線顏色混合狀態(由 RenderingDevice 使用)。

說明

這個物件由 RenderingDevice 使用。

屬性

Array[RDPipelineColorBlendStateAttachment]

attachments

[]

Color

blend_constant

Color(0, 0, 0, 1)

bool

enable_logic_op

false

LogicOperation

logic_op

0


屬性說明

Array[RDPipelineColorBlendStateAttachment] attachments = [] 🔗

要混合的附件。


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

  • void set_blend_constant(value: Color)

  • Color get_blend_constant()

要進行混合的顏色常數。另見 RenderingDevice.draw_list_set_blend_constants()


bool enable_logic_op = false 🔗

  • void set_enable_logic_op(value: bool)

  • bool get_enable_logic_op()

如果為 true,則執行 logic_op 中定義的邏輯運算。


LogicOperation logic_op = 0 🔗

混合時執行的邏輯運算。僅在 enable_logic_optrue 時有效。