浏览代码

HDRP: Add minor comment on sky shader

/main
sebastienlagarde 7 年前
当前提交
b38abf0c
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 2
      com.unity.render-pipelines.high-definition/HDRP/Sky/HDRISky/HDRISky.shader
  2. 4
      com.unity.render-pipelines.high-definition/HDRP/Sky/ProceduralSky/ProceduralSky.shader

2
com.unity.render-pipelines.high-definition/HDRP/Sky/HDRISky/HDRISky.shader


SubShader
{
// For cubemap
Pass
{
ZWrite Off

}
// For fullscreen Sky
Pass
{
ZWrite Off

4
com.unity.render-pipelines.high-definition/HDRP/Sky/ProceduralSky/ProceduralSky.shader


float3 cameraPos = float3(0,kInnerRadius + kCameraHeight,0); // The camera's current position
// Get the ray from the camera to the vertex and its length (which is the far point of the ray passing through the atmosphere)
float3 eyeRay = dir; // normalize(mul((float3x3)UNITY_MATRIX_M, v.vertex.xyz));
float3 eyeRay = dir; // normalize(mul((float3x3)GetObjectToWorldMatrix(), v.vertex.xyz));
float far = 0.0;
float3 cIn = float3(0.0, 0.0, 0.0);

SubShader
{
// For cubemap
Pass
{
ZWrite Off

}
// For fullscreen Sky
Pass
{
ZWrite Off

正在加载...
取消
保存