Summary - Post-processing
- Game Development course
- Advanced
- Lesson 12/71
- 4 min
Reinforce post-processing usage with a summary task.
Post-processing summary
Post-processing is the effect stage applied to the rendered frame. Effects are set through the Profile inside a Volume, and each effect is enabled with an override. Bloom spreads brightness, Color Grading decides the color tone, and Vignette darkens the edges.
profil.bloom.overrideState = true;
profil.vignette.overrideState = true;With the right effects the mood of the scene changes completely.
Practice Post-processing summary task
In a class named PostOzet, define a string efekt field with the value "Bloom" and a string profil field with the value "AnaProfil", plus an int kare field. In the Awake method, set the efekt value to "Color Grading". In the Start method, print the pieces "Efekt: ", efekt, " Profil: " and profil joined together with Debug.Log. In the Update method, increase the kare counter by one every frame.
Starter code
using UnityEngine;
public class PostOzet : MonoBehaviour
{
// string efekt alanini "Bloom" degeriyle tanimla
// string profil alanini "AnaProfil" degeriyle tanimla
// int kare alanini tanimla
void Awake()
{
// efekt degerini "Color Grading" yap
}
void Start()
{
// "Efekt: " + efekt + " Profil: " + profil biciminde yazdir
}
void Update()
{
// kare sayacini bir artir
}
}Sample solution
using UnityEngine;
public class PostOzet : MonoBehaviour
{
string efekt = "Bloom";
string profil = "AnaProfil";
int kare;
void Awake()
{
efekt = "Color Grading";
}
void Start()
{
Debug.Log("Efekt: " + efekt + " Profil: " + profil);
}
void Update()
{
kare++;
}
}Expected output
Efekt: Color Grading Profil: AnaProfil
Questions and answers
Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.
1 Which of the following is a post-processing effect?
- Static flag
- Bloom Correct answer
- GameObject
- Directional light
Explanation: Bloom is an effect applied to the frame; a Directional light is a light type, Static is an object flag and a GameObject is a scene object.
2 Write the effect name
string efektAdi = "____";
string efektAdi = "Vignette";
Explanation: Vignette is a post-processing effect; the others are scene and light concepts, not effects.
3 Post-processing summary table
| Term | Meaning |
|---|---|
Volume |
The region where the effects apply |
Profile |
The asset that stores the settings |
Bloom |
The brightness spreading effect |
Vignette |
The edge darkening effect |