浏览代码

enable panaroma for iOS

/main
Filip Iliescu 8 年前
当前提交
9c8adb1a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      Assets/ScriptableRenderPipeline/common/ShaderBase.h
  2. 2
      Assets/ScriptableRenderPipeline/common/TextureCache.cs

2
Assets/ScriptableRenderPipeline/common/ShaderBase.h


return half2( 1.0-0.5*recipPi*atan2(dir.x, -dir.z), asin(dir.y)*recipPi+0.5 );
}
#define CUBE_ARRAY_NOT_SUPPORTED
#ifdef CUBE_ARRAY_NOT_SUPPORTED
#define UNITY_DECLARE_ABSTRACT_CUBE_ARRAY UNITY_DECLARE_TEX2DARRAY
#define UNITY_PASS_ABSTRACT_CUBE_ARRAY UNITY_PASS_TEX2DARRAY

2
Assets/ScriptableRenderPipeline/common/TextureCache.cs


// alternative panorama path intended for mobile
// the member variables below are only in use when m_IsNoCubeArray is true.
private bool m_IsNoCubeArray = false;
private bool m_IsNoCubeArray = true;
private Texture2DArray m_CacheNoCubeArray;
private RenderTexture[] m_StagingRTs;
private int m_NumPanoMipLevels;

正在加载...
取消
保存