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.Pinhole

Enumeration Value

Description

Applies the 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 pinhole effect can be animated by changing its parameters every frame.

Example

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

See Docs

Features - Postprocessing Shaders