Post-processing effects can quickly improve a game’s visuals with a variety of customizable filters. Some applications include adding realism to an outdoor environment with depth of field, or providing players feedback by flashing a screen red when they’re damaged.
To add post-processing effects, add them to either the
Lighting service or the
Camera depending on if you want them displayed to individual players or a whole server.
Performance with Effects »
When Working in Studio
Depending on your Studio settings, some effects may not appear. To check, go to File → Settings → Rendering. In Performance, set the Quality Level options to Level 21, the highest possible.
Considerations for Players
Effects may differ across devices. On slower or mobile devices, effects may be reduced or not be visible. For more information, see that effect’s API page.
BloomEffect simulates a camera viewing a bright light, an effect often used to exaggerate currently existing lights. By increasing the effect’s intensity, any parts with lighter colors (such as white plastic or neon materials) will glow.
BlurEffect applies a gaussian blur to the entire rendered game world. One practical application is blurring a scene when a player has a GUI menu open.
Similar to photo editing software, the
ColorCorrectionEffect adjusts scene color properties such as saturation, tint color, or contrast. Use this effect to enhance an environment’s appearance or create a specific mood (spooky, calm, etc.). It can also be used to provide player feedback, such as making the scene tint red if a player is hit.
Depth of Field
DepthOfFieldEffect simulates a camera lens by blurring parts of a scene not in focus. Distant objects can be blurred or this effect can be used to focus on specific parts of a scene, like an item in an in-game shop.
SunRaysEffect renders a halo of light, complete with rays around the sun that move based on
Lighting/TimeOfDay|TimeOfDay. The effect is shaped by objects in the world between the player’s camera and the sun, allowing for realistic visuals of light and shadow.
The examples below combine different post-processing effects to create different effects that can be used in games. Unless stated, assume that all effects are parented to
|TintColor||[255, 250, 235]|
|TintColor||[220, 210, 255]|
Player Damage Feedback
Post-processing effects can be scripted, often with animations using
TweenService. This example shows a death effect where the screen blurs and changes color. Its script can be repurposed in different ways, such as color-shifting the screen if a player is poisoned, or blurring the screen while a menu is active.
To use the script below, copy its code into a