浏览代码

Merge pull request #1810 from Unity-Technologies/FixTextureCacheMipmapWarningForPlanarReflection

Fixed TextureCache2D mipmap check for RenderTextures
/main
GitHub 6 年前
当前提交
f33cccee
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 6
      com.unity.render-pipelines.core/CoreRP/Textures/TextureCache.cs

6
com.unity.render-pipelines.core/CoreRP/Textures/TextureCache.cs


bool TextureHasMipmaps(Texture texture)
{
var crt = texture as CustomRenderTexture;
else if (crt is CustomRenderTexture)
return ((CustomRenderTexture)texture).useMipMap;
else if (texture is RenderTexture)
return ((RenderTexture)texture).useMipMap;
return false;
}

正在加载...
取消
保存