MetalMergerEffectPIX

public class MetalMergerEffectPIX : PIXMergerEffect, PIXMetal

Metal Shader (Merger Effect)

vars: pi, u, v, uv, wA, hA, wuA, hvA, inPixA, wB, hB, wuB, hvB, inPixB

float4 inPixA = inTexA.sample(s, uv);

Example:

let metalMergerEffectPix = MetalMergerEffectPIX(code:
    """
    pix = pow(inPixA, 1.0 / inPixB);
    """
)
metalMergerEffectPix.inPixA = CameraPIX()
metalMergerEffectPix.inPixB = ImagePIX("img_name")
  • Undocumented

    Declaration

    Swift

    override open var shader: String { get }
  • Undocumented

    Declaration

    Swift

    public override var shaderNeedsAspect: Bool { get }