André McGrail
5 年前
当前提交
875324db
共有 357 个文件被更改,包括 481 次插入 和 821 次删除
-
1Packages/com.unity.render-pipelines.core/CHANGELOG.md
-
84Packages/com.unity.render-pipelines.core/Runtime/Utilities/CameraCaptureBridge.cs
-
2Packages/com.unity.render-pipelines.core/ShaderLibrary/Packing.hlsl
-
2Packages/com.unity.render-pipelines.core/package.json
-
4Packages/com.unity.render-pipelines.universal/CHANGELOG.md
-
4Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Channel-Mixer.md
-
6Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Color-Adjustments.md
-
4Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Color-Curves.md
-
6Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Film-Grain.md
-
4Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Lens-Distortion.md
-
10Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Lift-Gamma-Gain.md
-
4Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Panini-Projection.md
-
10Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Shadows-Midtones-Highlights.md
-
8Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-Split-Toning.md
-
4Packages/com.unity.render-pipelines.universal/Documentation~/Post-Processing-White-Balance.md
-
34Packages/com.unity.render-pipelines.universal/Documentation~/TableOfContents.md
-
13Packages/com.unity.render-pipelines.universal/Documentation~/index.md
-
10Packages/com.unity.render-pipelines.universal/Documentation~/integration-with-post-processing.md
-
12Packages/com.unity.render-pipelines.universal/Documentation~/rendering-in-universalrp.md
-
9Packages/com.unity.render-pipelines.universal/Documentation~/shader-stripping.md
-
10Packages/com.unity.render-pipelines.universal/Documentation~/shaders-in-universalrp.md
-
14Packages/com.unity.render-pipelines.universal/Documentation~/shading-model.md
-
14Packages/com.unity.render-pipelines.universal/Documentation~/simple-lit-shader.md
-
10Packages/com.unity.render-pipelines.universal/Documentation~/speedtree.md
-
22Packages/com.unity.render-pipelines.universal/Documentation~/universalrp-asset.md
-
4Packages/com.unity.render-pipelines.universal/Documentation~/universalrp-builtin-feature-comparison.md
-
14Packages/com.unity.render-pipelines.universal/Documentation~/unlit-shader.md
-
8Packages/com.unity.render-pipelines.universal/Documentation~/upgrading-your-shaders.md
-
47Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/MasterNodes/SpriteLitMasterNode.cs
-
47Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/MasterNodes/SpriteUnlitMasterNode.cs
-
1Packages/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineLightEditor.cs
-
43Packages/com.unity.render-pipelines.universal/Runtime/Data/UniversalRenderPipelineAsset.cs
-
11Packages/com.unity.render-pipelines.universal/Runtime/ForwardRendererData.cs
-
18Packages/com.unity.render-pipelines.universal/ShaderLibrary/MetaInput.hlsl
-
22Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl
-
18Packages/com.unity.render-pipelines.universal/Shaders/LitMetaPass.hlsl
-
18Packages/com.unity.render-pipelines.universal/Shaders/SimpleLitMetaPass.hlsl
-
1Packages/com.unity.render-pipelines.universal/Shaders/Terrain/TerrainDetailLit.shader
-
9Packages/com.unity.render-pipelines.universal/Shaders/Terrain/TerrainLitPasses.hlsl
-
5Packages/com.unity.render-pipelines.universal/Tests/Runtime/RuntimeTests.cs
-
2Packages/com.unity.render-pipelines.universal/package.json
-
2Packages/com.unity.shadergraph/CHANGELOG.md
-
6Packages/com.unity.shadergraph/Editor/AssetCallbacks/CreateShaderGraph.cs
-
6Packages/com.unity.shadergraph/Editor/Data/Enumerations/Precision.cs
-
31Packages/com.unity.shadergraph/Editor/Data/Graphs/AbstractShaderProperty.cs
-
2Packages/com.unity.shadergraph/Editor/Data/Graphs/BitangentMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/BooleanMaterialSlot.cs
-
27Packages/com.unity.shadergraph/Editor/Data/Graphs/BooleanShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/ColorMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/ColorRGBMaterialSlot.cs
-
26Packages/com.unity.shadergraph/Editor/Data/Graphs/ColorShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/CubemapInputMaterialSlot.cs
-
41Packages/com.unity.shadergraph/Editor/Data/Graphs/CubemapShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/DynamicMatrixMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/DynamicValueMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/DynamicVectorMaterialSlot.cs
-
2Packages/com.unity.shadergraph/Editor/Data/Graphs/GradientInputMaterialSlot.cs
-
28Packages/com.unity.shadergraph/Editor/Data/Graphs/GradientShaderProperty.cs
-
3Packages/com.unity.shadergraph/Editor/Data/Graphs/GraphData.cs
-
2Packages/com.unity.shadergraph/Editor/Data/Graphs/MaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix2MaterialSlot.cs
-
13Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix2ShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix3MaterialSlot.cs
-
13Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix3ShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix4MaterialSlot.cs
-
11Packages/com.unity.shadergraph/Editor/Data/Graphs/Matrix4ShaderProperty.cs
-
11Packages/com.unity.shadergraph/Editor/Data/Graphs/MatrixShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/NormalMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/PositionMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/PreviewProperty.cs
-
25Packages/com.unity.shadergraph/Editor/Data/Graphs/SamplerStateShaderProperty.cs
-
4Packages/com.unity.shadergraph/Editor/Data/Graphs/SerializableCubemap.cs
-
4Packages/com.unity.shadergraph/Editor/Data/Graphs/SerializableTexture.cs
-
4Packages/com.unity.shadergraph/Editor/Data/Graphs/SerializableTextureArray.cs
-
173Packages/com.unity.shadergraph/Editor/Data/Graphs/ShaderGraphRequirements.cs
-
22Packages/com.unity.shadergraph/Editor/Data/Graphs/ShaderInput.cs
-
22Packages/com.unity.shadergraph/Editor/Data/Graphs/ShaderKeyword.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/SpaceMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/TangentMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Texture2DArrayInputMaterialSlot.cs
-
44Packages/com.unity.shadergraph/Editor/Data/Graphs/Texture2DArrayShaderProperty.cs
-
7Packages/com.unity.shadergraph/Editor/Data/Graphs/Texture2DInputMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Texture3DInputMaterialSlot.cs
-
41Packages/com.unity.shadergraph/Editor/Data/Graphs/Texture3DShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/UVMaterialSlot.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector1MaterialSlot.cs
-
33Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector1ShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector2MaterialSlot.cs
-
17Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector2ShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector3MaterialSlot.cs
-
19Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector3ShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector4MaterialSlot.cs
-
17Packages/com.unity.shadergraph/Editor/Data/Graphs/Vector4ShaderProperty.cs
-
14Packages/com.unity.shadergraph/Editor/Data/Graphs/VectorShaderProperty.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Graphs/ViewDirectionMaterialSlot.cs
-
2Packages/com.unity.shadergraph/Editor/Data/Graphs/KeywordEntry.cs.meta
-
33Packages/com.unity.shadergraph/Editor/Data/Implementation/NodeUtils.cs
-
2Packages/com.unity.shadergraph/Editor/Data/Interfaces/IGeneratesBodyCode.cs
-
2Packages/com.unity.shadergraph/Editor/Data/Interfaces/IGeneratesFunction.cs
-
1Packages/com.unity.shadergraph/Editor/Data/Interfaces/IMayRequireBitangent.cs
|
|||
# Shader Stripping |
|||
|
|||
Unity compiles many Shader Variants from a single Shader source file. The number of Shader Variants depends on how many keywords you’ve included in the Shader. In the default Shaders, the Universal Render Pipeline (URP) uses a set of keywords for lighting and shadows. URP can exclude some Shader variants, depending on which features are active in the [URP Asset](universalrp-asset.md). |
|||
Unity compiles many Shader Variants from a single Shader source file. The number of Shader Variants depends on how many keywords you’ve included in the Shader. In the default Shaders, the Universal Render Pipeline (Universal RP) uses a set of keywords for lighting and shadows. Universal RP can exclude some Shader variants, depending on which features are active in the [Universal RP Asset](universalrp-asset.md). |
|||
When you disable [certain features](shader-stripping-keywords.md) in the URP Asset, the pipeline “strips” the related Shader variants from the build. Stripping your Shaders gives you smaller build sizes and shorter build times. This is useful if your project is never going to use certain features or keywords. |
|||
When you disable [certain features](shader-stripping-keywords.md) in the Universal RP Asset, the pipeline “strips” the related Shader variants from the build. Stripping your Shaders gives you smaller build sizes and shorter build times. This is useful if your project is never going to use certain features or keywords. |
|||
For example, you might have a project where you never use shadows for directional lights. Without Shader stripping, Shader variants with directional shadow support remain in the build. If you know you won't use these shadows at all, you can uncheck **Cast Shadows** in the URP Asset for main or additional direction lights. URP then strips these Shader Variants from the build. |
|||
For example, you might have a project where you never use shadows for directional lights. Without Shader stripping, Shader variants with directional shadow support remain in the build. If you know you won't use these shadows at all, you can uncheck **Cast Shadows** in the Universal RP Asset for main or additional direction lights. Universal RP then strips these Shader Variants from the build. |
|||
For more information about stripping Shader Variants in Unity, see [this blog post by Christophe Riccio](https://blogs.unity3d.com/2018/05/14/stripping-scriptable-shader-variants/). |
|||
|
|||
For more information about stripping Shader Variants in Unity, see [this blog post by Christophe Riccio](https://blogs.unity3d.com/2018/05/14/stripping-scriptable-shader-variants/). |
|
|||
# SpeedTree Shaders |
|||
# SpeedTree Shaders in Universal RP |
|||
When you use SpeedTree Shaders in URP, keep the following in mind: |
|||
When you use SpeedTree Shaders in Universal RP, keep the following in mind: |
|||
* There is no Global Illumination on trees in URP. |
|||
* There is no Global Illumination on trees in Universal RP. |
|||
* Trees cannot receive shadows in URP. |
|||
* In URP, you can configure whether lights should be per vertex of per pixel in the [URP Asset](universalrp-asset.md). |
|||
* Trees cannot receive shadows in Universal RP. |
|||
* In Universal RP, you can configure whether lights should be per vertex of per pixel in the [Universal RP Asset](universalrp-asset.md). |
|||
|
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue