浏览代码

PR review fixes

/stochastic_alpha_test
Thomas 7 年前
当前提交
c9e65e8b
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 2
      ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs
  2. 7
      ScriptableRenderPipeline/HDRenderPipeline/Sky/SkySettings.cs

2
ScriptableRenderPipeline/HDRenderPipeline/Sky/SkyManager.cs


{
CoreUtils.SetRenderTarget(cmd, dest, ClearFlag.None, 0, (CubemapFace)i);
propertyBlock.SetTexture("_MainTex", source);
propertyBlock.SetFloat("_faceIndex", i);
propertyBlock.SetFloat("_faceIndex", (float)i);
cmd.DrawProcedural(Matrix4x4.identity, m_BlitCubemapMaterial, 0, MeshTopology.Triangles, 3, 1, propertyBlock);
}

7
ScriptableRenderPipeline/HDRenderPipeline/Sky/SkySettings.cs


hash = hash * 23 + rotation.GetHashCode();
hash = hash * 23 + exposure.GetHashCode();
hash = hash * 23 + multiplier.GetHashCode();
hash = hash * 23 + ((int)resolution).GetHashCode(); // Enum.GetHashCode generates garbade on .NET 3.5... Works fine on 4.6+. Wtf !?
// TODO: Fixme once we switch to .Net 4.6+
//>>>
hash = hash * 23 + ((int)resolution).GetHashCode(); // Enum.GetHashCode generates garbade on .NET 3.5... Wtf !?
//<<<
hash = hash * 23 + updatePeriod.GetHashCode();
hash = lightingOverride != null ? hash * 23 + rotation.GetHashCode() : hash;
return hash;

正在加载...
取消
保存