Switch to URP, Bug fix, Remove FXAA TAA due to URP
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user