浏览代码

reverted real with float in GetTriplanarCoordinate

/feature-ReflectionProbeFit
Felipe Lira 7 年前
当前提交
9c24d3f8
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/CommonMaterial.hlsl

8
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/CommonMaterial.hlsl


}
// Planar/Triplanar convention for Unity in world space
void GetTriplanarCoordinate(real3 position, out real2 uvXZ, out real2 uvXY, out real2 uvZY)
void GetTriplanarCoordinate(float3 position, out float2 uvXZ, out float2 uvXY, out float2 uvZY)
uvXZ = real2(position.z, position.x);
uvXY = real2(position.x, position.y);
uvZY = real2(position.z, position.y);
uvXZ = float2(position.z, position.x);
uvXY = float2(position.x, position.y);
uvZY = float2(position.z, position.y);
}
real LerpWhiteTo(real b, real t)

正在加载...
取消
保存