André McGrail
5 年前
当前提交
f64ae227
共有 456 个文件被更改,包括 883 次插入 和 568 次删除
-
3Packages/com.unity.render-pipelines.core/CHANGELOG.md
-
21Packages/com.unity.render-pipelines.core/Editor/LookDev/Context.cs
-
5Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow-PersonalSkin.uss
-
53Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.DebugSidePanel.cs
-
10Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.EnvironmentLibrarySidePanel.cs
-
103Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.cs
-
65Packages/com.unity.render-pipelines.core/Editor/LookDev/DisplayWindow.uss
-
4Packages/com.unity.render-pipelines.core/Editor/LookDev/Stage.cs
-
2Packages/com.unity.render-pipelines.core/Editor/LookDev/ToolbarRadio.cs
-
20Packages/com.unity.render-pipelines.core/Editor/Volume/VolumeComponentProvider.cs
-
11Packages/com.unity.render-pipelines.core/Runtime/Debugging/Prefabs/Scripts/DebugUIHandlerEnumHistory.cs
-
10Packages/com.unity.render-pipelines.core/Runtime/Debugging/Prefabs/Scripts/DebugUIHandlerToggleHistory.cs
-
84Packages/com.unity.render-pipelines.core/Runtime/Utilities/CameraCaptureBridge.cs
-
5Packages/com.unity.render-pipelines.core/Runtime/Volume/VolumeComponent.cs
-
5Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl
-
2Packages/com.unity.render-pipelines.core/ShaderLibrary/Packing.hlsl
-
2Packages/com.unity.render-pipelines.core/package.json
-
7Packages/com.unity.render-pipelines.universal/CHANGELOG.md
-
2Packages/com.unity.render-pipelines.universal/Documentation~/2DLightProperties.md
-
21Packages/com.unity.render-pipelines.universal/Documentation~/2d-index.md
-
2Packages/com.unity.render-pipelines.universal/Documentation~/HDREmulationScale.md
-
12Packages/com.unity.render-pipelines.universal/Documentation~/LightBlendStyles.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
-
17Packages/com.unity.render-pipelines.universal/Documentation~/Setup.md
-
2Packages/com.unity.render-pipelines.universal/Documentation~/ShaderGraph.md
-
55Packages/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
-
7Packages/com.unity.render-pipelines.universal/Editor/2D/Light2DEditor.cs
-
1Packages/com.unity.render-pipelines.universal/Editor/2D/Renderer2DMenus.cs
-
2Packages/com.unity.render-pipelines.universal/Editor/2D/ShadowCaster2DEditor.cs
-
14Packages/com.unity.render-pipelines.universal/Editor/2D/SortingLayerDropDown.cs
-
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
-
1Packages/com.unity.render-pipelines.universal/Runtime/2D/Passes/Utility/RendererLighting.cs
-
43Packages/com.unity.render-pipelines.universal/Runtime/Data/UniversalRenderPipelineAsset.cs
-
7Packages/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
-
3Packages/com.unity.render-pipelines.universal/Shaders/2D/Light2D-Point.shader
-
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
-
10Packages/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
-
10Packages/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
|
|||
# Overview |
|||
The following are 2D related features that utilize the __Universal Render Pipeline__: |
|||
When using [Universal Render Pipeline](https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@latest/index.html) (Universal RP) with the __2D Renderer__ selected, the __Light 2D__ component introduces a way to apply 2D optimized lighting to Sprites. |
|||
- [2D Lights and Shadows](Lights-2D-intro.md) |
|||
- [2D Pixel Perfect](2d-pixelperfect.md) |
|||
You can choose from several different light types with the __Light 2D__ component. The light types currently available in the package are: |
|||
|
|||
- [Freeform](LightTypes.html#freeform) |
|||
- [Sprite](LightTypes.html#sprite) |
|||
- [Parametric](LightTypes.html#parametric) |
|||
- [Point](LightTypes.html#point) |
|||
- [Global](LightTypes.html#global) |
|||
|
|||
![](images\image_1.png) |
|||
|
|||
The package includes the __2D Renderer Data__ Asset which contains the __Blend Styles__ parameters, and allows you to create up to four custom Light Operations for your Project. |
|||
|
|||
|
|||
__Note:__ If you have the experimental 2D Renderer enabled (menu: __Graphics Settings__ > add the 2D Renderer Asset under __Scriptable Render Pipeline Settings__), some of the options related to 3D rendering in the Universal RP Asset don't have any impact on your final app or game. |
|||
|
|||
|
|
|||
# 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 (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). |
|||
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). |
|||
|
|||
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 in Universal RP |
|||
# SpeedTree Shaders |
|||
When you use SpeedTree Shaders in Universal RP, keep the following in mind: |
|||
When you use SpeedTree Shaders in URP, keep the following in mind: |
|||
* There is no Global Illumination on trees in Universal RP. |
|||
* There is no Global Illumination on trees in URP. |
|||
* 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). |
|||
* 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). |
|||
|
部分文件因为文件数量过多而无法显示
撰写
预览
正在加载...
取消
保存
Reference in new issue