Switch to URP, Bug fix, Remove FXAA TAA due to URP

This commit is contained in:
CroakFang
2023-10-26 23:00:54 +08:00
parent 986d11e231
commit 0632df6700
9 changed files with 387 additions and 69 deletions
-12
View File
@@ -10,15 +10,12 @@ public class CameraOrbit : MonoBehaviour
{
public static CameraOrbit instance;
public int CameraMode = 0;
public int AAMode = 0;
[Header("Light")]
public GameObject Light;
public Dropdown CameraModeDropdown;
public Dropdown AAModeDropdown;
public GameObject CameraTargetHelper;
public Vector3 TargetCenter;
@@ -84,14 +81,6 @@ public class CameraOrbit : MonoBehaviour
CameraMode = CameraModeDropdown.value;
}
if (AAMode != AAModeDropdown.value)
{
var postprocessLayerMain = Camera.main.GetComponent<PostProcessLayer>();
var postprocessLayerPreview = UmaViewerBuilder.Instance.AnimationCamera.GetComponent<PostProcessLayer>();
postprocessLayerMain.antialiasingMode = postprocessLayerPreview.antialiasingMode = (PostProcessLayer.Antialiasing)AAModeDropdown.value;
Debug.Log($"Switched AntiAliasing to {(PostProcessLayer.Antialiasing)AAModeDropdown.value}");
AAMode = AAModeDropdown.value;
}
switch (CameraModeDropdown.value)
{
case 0:
@@ -102,7 +91,6 @@ public class CameraOrbit : MonoBehaviour
}
}
#region PC controls
/// <summary>
/// Rotate Light Source
+6
View File
@@ -201,6 +201,12 @@ public class UmaViewerMain : MonoBehaviour
Builder.ShaderList = new List<Shader>(shaders.LoadAllAssets<Shader>());
}
public void ChangeAA(int val)
{
}
public void OpenUrl(string url)
{
Application.OpenURL(url);