浏览代码

Temporarily removed code dependent from C++ PR in order to do a PR.

/Add-support-for-light-specular-color-tint
Julien Ignace 7 年前
当前提交
e5480b0c
共有 1 个文件被更改,包括 11 次插入1 次删除
  1. 12
      ScriptableRenderPipeline/Core/TextureCache.cs

12
ScriptableRenderPipeline/Core/TextureCache.cs


//#define NATIVE_CODE_FOR_CMD_CONVERT_TEXTURE
using UnityEngine;
using System.Collections.Generic;
using UnityEngine.Rendering;

if (mismatch)
{
#if NATIVE_CODE_FOR_CMD_CONVERT_TEXTURE
}
#else
UnityEngine.Graphics.ConvertTexture(texture, 0, m_Cache, sliceIndex);
#endif
}
else
{
cmd.CopyTexture(texture, 0, m_Cache, sliceIndex);

{
for (int f = 0; f < 6; f++)
{
#if NATIVE_CODE_FOR_CMD_CONVERT_TEXTURE
#else
UnityEngine.Graphics.ConvertTexture(texture, f, m_Cache, 6 * sliceIndex + f);
#endif
}
}
else

正在加载...
取消
保存