您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
33 行
1.2 KiB
33 行
1.2 KiB
#ifdef SHADER_VARIABLES_INCLUDE_CB
|
|
int _AtmosphericScatteringType;
|
|
// Common
|
|
float _FogColorMode;
|
|
float4 _FogColorDensity; // color in rgb, density in alpha
|
|
float4 _MipFogParameters;
|
|
// Linear fog
|
|
float4 _LinearFogParameters;
|
|
// Exp fog
|
|
float4 _ExpFogParameters;
|
|
|
|
float _SkyTextureMipCount;
|
|
#else
|
|
TEXTURE3D(_VBufferLighting);
|
|
TEXTURECUBE(_SkyTexture);
|
|
|
|
#define _MipFogNear _MipFogParameters.x
|
|
#define _MipFogFar _MipFogParameters.y
|
|
#define _MipFogMaxMip _MipFogParameters.z
|
|
|
|
#define _FogDensity _FogColorDensity.w
|
|
#define _FogColor _FogColorDensity
|
|
|
|
#define _LinearFogStart _LinearFogParameters.x
|
|
#define _LinearFogOneOverRange _LinearFogParameters.y
|
|
#define _LinearFogHeightEnd _LinearFogParameters.z
|
|
#define _LinearFogHeightOneOverRange _LinearFogParameters.w
|
|
|
|
#define _ExpFogDistance _ExpFogParameters.x
|
|
#define _ExpFogBaseHeight _ExpFogParameters.y
|
|
#define _ExpFogHeightAttenuation _ExpFogParameters.z
|
|
#endif
|
|
|