Complete the code to add a post-processing volume component to the camera.
Camera.main.gameObject.AddComponent<[1]>();The PostProcessVolume component is used to apply post-processing effects in Unity.
Complete the code to enable the post-processing volume after adding it.
var volume = Camera.main.gameObject.GetComponent<PostProcessVolume>();
volume.[1] = true;The enabled property activates or deactivates a component in Unity.
Fix the error in the code to correctly set the weight of the post-processing volume.
var volume = Camera.main.GetComponent<PostProcessVolume>(); volume.weight [1] 1.0f;
The assignment operator = is used to set the value of weight.
Fill both blanks to create a new post-processing profile and assign it to the volume.
var profile = ScriptableObject.CreateInstance<[1]>(); volume.[2] = profile;
You create a new PostProcessProfile instance and assign it to the volume's profile property.
Fill all three blanks to add a bloom effect to the profile and enable it.
var bloom = profile.AddSettings<[1]>(); bloom.[2].value = 1.0f; bloom.[3].value = true;
You add a Bloom effect, set its intensity value, and enable it by setting enabled to true.