AudioAsset
Ease
FastString
FontAsset
NineSlice
PackedSprite
PackedSpriteID
RB
   HardwareSettings
   IRetroBlitGame
RBAsset
Rect2i
ShaderAsset
SoundReference
SpriteGrid
SpriteSheetAsset
TMXMapAsset
   TMXLayer
   TMXLayerLoadState
   TMXObject
   TMXObjectGroup
   TMXProperties
Vector2i

RB.Effect.InvertedPinhole

Enumeration Value

Description

Applies the inverted pinhole effect to the display. The center, size, and color of the pinhole can be controlled. The size of the pinhole effect scales from 0.0f (display fully visible) to 1.0f (display hidden by pinhole effect).

The inverted pinhole effect can be animated by changing its parameters every frame.

Example

void Initialize()
{
    // Set the inverted pinhole effect to slightly on the left side of the display, 40% closed.
    RB.EffectSet(RB.Effect.InvertedPinhole, 0.4fnew Vector2i(5050), Color.black);
}

See Docs

Features - Postprocessing Shaders