AlphaBlend.swift 265 B

123456789
  1. public class AlphaBlend: BasicOperation {
  2. public var mix: Float = 0.5 { didSet { uniformSettings["mixturePercent"] = mix } }
  3. public init() {
  4. super.init(fragmentShader: AlphaBlendFragmentShader, numberOfInputs: 2)
  5. ({ mix = 0.5 })()
  6. }
  7. }