Add beautify post process to project
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
using Beautify.Universal;
|
||||
using Input = Beautify.Demos.InputProxy;
|
||||
|
||||
namespace Beautify.Demos {
|
||||
|
||||
public class ToggleDoF : MonoBehaviour {
|
||||
|
||||
void Update() {
|
||||
if (Input.GetMouseButtonDown(0)) {
|
||||
// toggles DoF state by overriding the volume property
|
||||
bool state = BeautifySettings.settings.depthOfField.value;
|
||||
BeautifySettings.settings.depthOfField.Override(!state);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user