浏览代码

Make the code less Italian by removing issues caused by copy-pasta

/Yibing-Project-2
Evgenii Golubev 7 年前
当前提交
38e10475
共有 3 个文件被更改,包括 2 次插入7 次删除
  1. 4
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Filtering.hlsl
  2. 2
      ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/GeometricTools.hlsl
  3. 3
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Sky/AtmosphericScattering/AtmosphericScattering.hlsl

4
ScriptableRenderPipeline/Core/CoreRP/ShaderLibrary/Filtering.hlsl


#ifndef UNITY_FILTERING_INCLUDED
#define UNITY_FILTERING_INCLUDED
#if !defined(SHADER_API_GLES)
// Cardinal (interpolating) B-Spline of the 2nd degree (3rd order). Support = 3x3.
// The fractional coordinate of each part is assumed to be in the [0, 1] range (centered on 0.5).
// https://www.desmos.com/calculator/47j9r9lolm

offsets[0] = -0.5 + 0.5 * m * rcp(weights[0]);
offsets[1] = 0.5 + r * rcp(weights[1]);
}
#endif // SHADER_API_GLES
#endif // UNITY_FILTERING_INCLUDED

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


float c = dot(start, start) - radius * radius;
float discriminant = b * b - 4.0 * a * c;
float intersect = false;
bool intersect = false;
intersections = float2(0.0, 0.0);
if (discriminant < 0.0 || a == 0.0)

3
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Sky/AtmosphericScattering/AtmosphericScattering.hlsl


return float4(0.0, 0.0, 0.0, 0.0);
}
return float4(fogColor, fogFactor); // Premultiplied alpha
return float4(fogColor, fogFactor);
#endif
正在加载...
取消
保存