Version: 2017.3

BlendOp

enumeration

Cambiar al Manual

Descripción

Operación de Blend (mezcla).

La operación de mezcla que es utilizada para combinar la salida de pixel shader con el render target. Esto se puede pasar a través de Material.SetInt() para cambiar la operación blend durante el tiempo de ejecución.

Tenga en cuenta que las operaciones lógicas solo son soportadas en el espacio de color Gamma (sin sRGB), en hardware DX11.1 corriendo en DirectX 11.1.

Advanced OpenGL blend operations are supported only on hardware supporting either GL_KHR_blend_equation_advanced or GL_NV_blend_equation_advanced and may require use of GL.RenderTargetBarrier. In addition, the shaders that are used with the advanced blend operations must have a UNITY_REQUIRE_ADVANDED_BLEND(mode) declaration in the shader code where mode is one of the blend operations or "all_equations" for supporting all advanced blend operations (see the KHR_blend_equation_advanced spec for other values).

Variables

AddAdd (s + d).
SubtractSubtract.
ReverseSubtractReverse subtract.
MinMin.
MaxMax.
LogicalClearLogical Clear (0).
LogicalSetLogical SET (1) (D3D11.1 only).
LogicalCopyLogical Copy (s) (D3D11.1 only).
LogicalCopyInvertedLogical inverted Copy (!s) (D3D11.1 only).
LogicalNoopLogical No-op (d) (D3D11.1 only).
LogicalInvertLogical Inverse (!d) (D3D11.1 only).
LogicalAndLogical AND (s & d) (D3D11.1 only).
LogicalNandLogical NAND !(s & d). D3D11.1 only.
LogicalOrLogical OR (s | d) (D3D11.1 only).
LogicalNorLogical NOR !(s | d) (D3D11.1 only).
LogicalXorLogical XOR (s XOR d) (D3D11.1 only).
LogicalEquivalenceLogical Equivalence !(s XOR d) (D3D11.1 only).
LogicalAndReverseLogical reverse AND (s & !d) (D3D11.1 only).
LogicalAndInvertedLogical inverted AND (!s & d) (D3D11.1 only).
LogicalOrReverseLogical reverse OR (s | !d) (D3D11.1 only).
LogicalOrInvertedLogical inverted OR (!s | d) (D3D11.1 only).
MultiplyMultiply (Advanced OpenGL blending).
ScreenScreen (Advanced OpenGL blending).
OverlayOverlay (Advanced OpenGL blending).
DarkenDarken (Advanced OpenGL blending).
LightenLighten (Advanced OpenGL blending).
ColorDodgeColor dodge (Advanced OpenGL blending).
ColorBurnColor burn (Advanced OpenGL blending).
HardLightHard light (Advanced OpenGL blending).
SoftLightSoft light (Advanced OpenGL blending).
DifferenceDifference (Advanced OpenGL blending).
ExclusionExclusion (Advanced OpenGL blending).
HSLHueHSL Hue (Advanced OpenGL blending).
HSLSaturationHSL saturation (Advanced OpenGL blending).
HSLColorHSL color (Advanced OpenGL blending).
HSLLuminosityHSL luminosity (Advanced OpenGL blending).