Evgenii Golubev
7 年前
当前提交
cace3d6d
共有 25 个文件被更改,包括 121 次插入 和 124 次删除
-
10ScriptableRenderPipeline/HDRenderPipeline/CHANGELOG.md
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugViewMaterialGBuffer.shader
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/Debug/DebugViewTiles.shader
-
7ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDRenderPipeline.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/HDStringConstants.cs
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Deferred.shader
-
8ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/DeferredDirectionalShadow.compute
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/Deferred.compute
-
6ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/GlobalLightLoopSettings.cs
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoop.cs
-
27ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightLoop/LightLoopDef.hlsl
-
1ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/Lighting.hlsl
-
10ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl
-
23ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/ShaderPass/LitDepthPass.hlsl
-
39ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/ShaderPass/LitDistortionPass.hlsl
-
23ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/ShaderPass/LitVelocityPass.hlsl
-
14ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/StackLit/StackLit.hlsl
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/SubsurfaceScattering/SubsurfaceScattering.shader
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/SubsurfaceScattering/SubsurfaceScatteringManager.cs
-
6ScriptableRenderPipeline/HDRenderPipeline/HDRP/RenderPipelineResources/CameraMotionVectors.shader
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassDBuffer.hlsl
-
4ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderVariables.hlsl
-
2ScriptableRenderPipeline/HDRenderPipeline/HDRP/Sky/OpaqueAtmosphericScattering.shader
-
32ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightUtilities.hlsl
-
9ScriptableRenderPipeline/HDRenderPipeline/HDRP/Lighting/LightUtilities.hlsl.meta
|
|||
#ifndef UNITY_LIGHT_UTILITIES_INCLUDED |
|||
#define UNITY_LIGHT_UTILITIES_INCLUDED |
|||
|
|||
#include "LightDefinition.cs.hlsl" |
|||
|
|||
// 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. |
|||
EnvLightData InitSkyEnvLightData(int envIndex) |
|||
{ |
|||
EnvLightData output; |
|||
ZERO_INITIALIZE(EnvLightData, output); |
|||
output.influenceShapeType = ENVSHAPETYPE_SKY; |
|||
output.envIndex = envIndex; |
|||
|
|||
output.influenceForward = float3(0.0, 0.0, 1.0); |
|||
output.influenceUp = float3(0.0, 1.0, 0.0); |
|||
output.influenceRight = float3(1.0, 0.0, 0.0); |
|||
output.influencePositionWS = float3(0.0, 0.0, 0.0); |
|||
|
|||
output.weight = 1.0; |
|||
output.multiplier = 1.0; |
|||
|
|||
// proxy |
|||
output.proxyForward = float3(0.0, 0.0, 1.0); |
|||
output.proxyUp = float3(0.0, 1.0, 0.0); |
|||
output.proxyRight = float3(1.0, 0.0, 0.0); |
|||
output.minProjectionDistance = 65504.0f; |
|||
|
|||
return output; |
|||
} |
|||
|
|||
#endif // UNITY_LIGHT_UTILITIES_INCLUDED |
|
|||
fileFormatVersion: 2 |
|||
guid: be2a44d9e57c5b943ab80fa5fc334d99 |
|||
timeCreated: 1480423337 |
|||
licenseType: Pro |
|||
ShaderImporter: |
|||
defaultTextures: [] |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue