浏览代码

Updated to master

/main
Nerites 6 年前
当前提交
8af63fa8
共有 1 个文件被更改,包括 10 次插入9 次删除
  1. 19
      com.unity.render-pipelines.core/CoreRP/XR/XRGConfig.cs

19
com.unity.render-pipelines.core/CoreRP/XR/XRGConfig.cs


{
[Serializable]
public struct XRGConfig
{ // XRGConfig stores the desired XR settings for a given SRP asset.
{ // XRGConfig stores the desired XR settings for a given SRP asset.
public float renderScale;
public float viewportScale;
public bool useOcclusionMesh;
public float occlusionMaskScale;
public bool showDeviceView;
public GameViewRenderMode gameViewRenderMode;
public void SetConfig()
{ // If XR is enabled, sets XRSettings from our saved config
if (!Enabled)

XRSettings.gameViewRenderMode = gameViewRenderMode;
}
public void SetViewportScale(float viewportScale)
{ // If XR is enabled, sets XRSettings from our saved config
{ // Only sets viewport- since this is probably the only thing getting updated every frame
public float renderScale;
public float viewportScale;
public bool useOcclusionMesh;
public float occlusionMaskScale;
public bool showDeviceView;
public GameViewRenderMode gameViewRenderMode;
public static readonly XRGConfig defaultXRConfig = new XRGConfig
{

正在加载...
取消
保存