浏览代码

Define IS_RENDERING_SKY

/main
Evgenii Golubev 8 年前
当前提交
b3bfb8e4
共有 1 个文件被更改,包括 7 次插入6 次删除
  1. 13
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/SkyHDRI.shader

13
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/SkyHDRI.shader


#pragma vertex Vert
#pragma fragment Frag
#pragma multi_compile _ ATMOSPHERICS_OCCLUSION_FULLSKY
#pragma multi_compile _ ATMOSPHERICS_OCCLUSION_FULLSKY
#ifndef PERFORM_SKY_OCCLUSION_TEST
#define IS_RENDERING_SKY
#endif
#define IS_RENDERING_SKY
#include "AtmosphericScattering.hlsl"
TEXTURECUBE(_Cubemap);

{
// TODO: implement SV_vertexID full screen quad
Varyings output;
output.positionCS = float4(input.positionCS.xy, UNITY_RAW_FAR_CLIP_VALUE
, 1.0);
output.eyeVector = input.eyeVector;
output.positionCS = float4(input.positionCS.xy, UNITY_RAW_FAR_CLIP_VALUE, 1.0);
output.eyeVector = input.eyeVector;
return output;
}

正在加载...
取消
保存