浏览代码

Fixed mip debug ratio (after change to parameters the ComputeTextureLOD function takes)

/feature-ReflectionProbeFit
lyndon homewood 7 年前
当前提交
0e87a139
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Debug.hlsl

2
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Debug.hlsl


// .zw is texture width,height so *2 is down one mip, *4 is down two mips
texelSize.zw *= 4.0;
float mipLevel = ComputeTextureLOD(uv, texelSize);
float mipLevel = ComputeTextureLOD(uv, texelSize.wz);
mipLevel = clamp(mipLevel, 0.0, 5.0 - 0.0001);
float4 colors[6] = {

正在加载...
取消
保存