GitHub
8 年前
当前提交
3fb12546
共有 14 个文件被更改,包括 96 次插入 和 36 次删除
-
6Assets/ScriptableRenderLoop/HDRenderLoop/Editor/HDRenderLoopInspector.cs
-
1Assets/ScriptableRenderLoop/HDRenderLoop/HDRenderLoop.cs
-
9Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightDefinition.cs
-
5Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightDefinition.cs.hlsl
-
1Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/Lighting.hlsl
-
3Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/SinglePass/SinglePassLoop.hlsl
-
3Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl
-
10Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/AtmosphericScattering.hlsl
-
3Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/GGXConvolve.shader
-
40Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/SkyHDRI.shader
-
15Assets/ScriptableRenderLoop/HDRenderLoop/Sky/SkyRenderer.cs
-
19Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightUtilities.hlsl
-
9Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/LightUtilities.hlsl.meta
-
8Assets/ScriptableRenderLoop/HDRenderLoop/Sky/README.txt.meta
|
|||
#ifndef UNITY_LIGHT_UTILITIES_INCLUDED |
|||
#define UNITY_LIGHT_UTILITIES_INCLUDED |
|||
|
|||
// The EnvLightData of the sky light contains a bunch of compile-time constants. |
|||
// This function sets them directly to allow the compiler to propagate them and optimize the code. |
|||
void InitSkyEnvLightData(int index) |
|||
{ |
|||
_EnvLightSky.envShapeType = ENVSHAPETYPE_SKY; |
|||
_EnvLightSky.envIndex = index; |
|||
_EnvLightSky.forward = float3(0.0, 0.0, 1.0); |
|||
_EnvLightSky.up = float3(0.0, 1.0, 0.0); |
|||
_EnvLightSky.right = float3(1.0, 0.0, 0.0); |
|||
_EnvLightSky.positionWS = float3(0.0, 0.0, 0.0); |
|||
_EnvLightSky.offsetLS = float3(0.0, 0.0, 0.0); |
|||
_EnvLightSky.innerDistance = float3(0.0, 0.0, 0.0); |
|||
_EnvLightSky.blendDistance = 1.0; |
|||
} |
|||
|
|||
#endif // UNITY_LIGHT_UTILITIES_INCLUDED |
|
|||
fileFormatVersion: 2 |
|||
guid: be2a44d9e57c5b943ab80fa5fc334d99 |
|||
timeCreated: 1480423337 |
|||
licenseType: Pro |
|||
ShaderImporter: |
|||
defaultTextures: [] |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 4eead1bf6efbd0a4e852367accddc070 |
|||
timeCreated: 1480334378 |
|||
licenseType: Pro |
|||
TextScriptImporter: |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue