|
|
|
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
using System; |
|
|
|
using System.Collections; |
|
|
|
|
|
|
m_cubeCookieTexArray = new TextureCacheCubemap(); |
|
|
|
m_cubeReflTexArray = new TextureCacheCubemap(); |
|
|
|
m_cookieTexArray.AllocTextureArray(8, 128, 128, TextureFormat.Alpha8, true); |
|
|
|
m_cubeCookieTexArray.AllocTextureArray(4, 512, 512, TextureFormat.Alpha8, true); |
|
|
|
m_cubeReflTexArray.AllocTextureArray(64, 128, 128, TextureFormat.BC6H, true); |
|
|
|
m_cubeCookieTexArray.AllocTextureArray(4, 512, TextureFormat.Alpha8, true); |
|
|
|
m_cubeReflTexArray.AllocTextureArray(64, 128, TextureFormat.BC6H, true); |
|
|
|
|
|
|
|
|
|
|
|
m_DeferredMaterial.SetTexture("_spotCookieTextures", m_cookieTexArray.GetTexCache()); |
|
|
|
|
|
|
m_cubeReflTexArray.NewFrame(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |