name setPiPEffect [effect, optionalParam1, ..., optionalParamN]

Operand types

name: String
[effect, optionalParam1, ..., optionalParamN]: Array

Type of returned value

Description

Sets Render Target's visual effect (Picture-in-Picture).

- name : String - Render surface reference from Render To Texture
- effect : Number - effect type
- optionalParam1: Parameters based on selected effect

Available effects:

  • 0: Normal - [0]

  • 1: Night Vision - [1]

  • 2: Thermal - [2]

  • 3: Color Correction - [3, enabled, brightness, contrast, offset, blend [r,g,b,a], lerp [r,g,b,a], rgb [r,g,b,a]]

  • 4: Mirror - [4]

  • 5: Chromatic Aberration - [5, enabled, powerx, powery, (bool) aspectCorrection]

  • 6: Film Grain - [6, enabled, intensity, sharpness, grainsize, intensityx1, intensityx2, (bool) monochromatic]
  • 7: Thermal Inverted [7]

Used In

Arma3

Example

"rendersurface" setPiPEffect [0];

"rendertarget0" setPiPEffect [3, 1.0, 1.0, 1.0, 0.0, [0.0, 1.0, 0.0, 0.25], [1.0, 0.0, 1.0, 1.0], [0.199, 0.587, 0.114, 0.0]];
Search OFPEC COMREF