PostProcessing & Universal RP

added PostProcessing and Universal Render Pipeline from the Packet Manager.
You can disable PostProcessing (If it lags too much) by disabling PostProcessingVolume in the Hierarchy.

added some fancy lights to the test scnee
added dirt texture to the camera
added bloom to the lights
added light to explosion from grenade
This commit is contained in:
Noah4ever
2021-12-10 09:22:32 +01:00
parent e0b4b94412
commit 14a8f084d3
63 changed files with 2858 additions and 248 deletions

View File

@@ -10,6 +10,8 @@ public class Grenade : MonoBehaviour
[SerializeField] float explosionForce = 500f;
[SerializeField] float grenadeRadius = 3f;
[SerializeField] bool hasExploded = false;
[Tooltip("After how many seconds the explosion Gameobject gets deleted!")]
[SerializeField] float lengthOfExplosion = 1;
private float countdown;
[Header("Explosion GameObject")]
@@ -46,7 +48,7 @@ public class Grenade : MonoBehaviour
// Spawns explosion particle
GameObject spawnedExplosion = Instantiate(explodeParticle, transform.position, transform.rotation);
// Destroys explosion particle after on second
Destroy(spawnedExplosion, 1);
Destroy(spawnedExplosion, lengthOfExplosion);
}