sebastienlagarde
7 年前
当前提交
c3198024
共有 1344 个文件被更改,包括 3685 次插入 和 5225 次删除
-
1.gitignore
-
999ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1102_Unlit_Distortion.unity.png
-
45ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1102_Unlit_Distortion.unity.png.meta
-
999ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1103_Unlit_Distortion_DepthTest.unity.png
-
45ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1103_Unlit_Distortion_DepthTest.unity.png.meta
-
999ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1203_Lit_Transparent.unity.png
-
45ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1203_Lit_Transparent.unity.png.meta
-
999ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2001_Dynamic_Directional.unity.png
-
999ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2003_Light_Parameters.unity.png
-
998ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2101_GI_Metapass.unity.png
-
999ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2301_Shadow_Mask.unity.png
-
100README.md
-
3SampleScenes/Common/Materials/Mat_Test_Unlit.mat
-
8SampleScenes/HDTest/AnimTest/Cube.mat
-
8SampleScenes/HDTest/AnimTest/NeoLowMan/Materials/body.mat
-
8SampleScenes/HDTest/AnimTest/Sphere.mat
-
8SampleScenes/HDTest/AnimTest/ThreeDScans/Gutenberg/Gutenberg.mat
-
8SampleScenes/HDTest/AnimTest/ThreeDScans/Gutenberg/Materials/Gutenberg.mat
-
953SampleScenes/HDTest/BasicProfiling.unity
-
14SampleScenes/HDTest/BasicProfiling/LightingData.asset
-
8SampleScenes/HDTest/BasicProfiling/Lit_Regular.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_Regular_Aniso.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_Regular_Aniso_Tess.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_Regular_Tess.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_SSS.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_SSS_Tess.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_SpecColor.mat
-
8SampleScenes/HDTest/BasicProfiling/Lit_SpecColor_Tess.mat
-
2SampleScenes/HDTest/BasicProfiling/ReflectionProbe-0.exr
-
5SampleScenes/HDTest/BasicProfiling/ReflectionProbe-1.exr
-
94SampleScenes/HDTest/BasicProfiling/ReflectionProbe-2.exr
-
4SampleScenes/HDTest/BasicProfiling/Unlit.mat
-
8SampleScenes/HDTest/Data/Fern/Fern_01.mat
-
8SampleScenes/HDTest/Data/Rock/rcgRock012/Materials/rcgRock012Material.mat
-
8SampleScenes/HDTest/Data/Tree/Thorn.mat
-
8SampleScenes/HDTest/Data/Tree/Tree_03_Branches.mat
-
8SampleScenes/HDTest/Data/Tree/Tree_03_Trunk.mat
-
19SampleScenes/HDTest/Data/Tree/Tree_03_Trunk_Layer.mat
-
8SampleScenes/HDTest/Data/Tree/Tree_03_Trunk_NoTesselation.mat
-
8SampleScenes/HDTest/GIParityTest/LitColorsRough.mat
-
8SampleScenes/HDTest/GIParityTest/LitWhiteRough.mat
-
8SampleScenes/HDTest/GammaTest/Lit_Gray_127.mat
-
8SampleScenes/HDTest/GammaTest/Lit_Gray_127_sRGB.mat
-
4SampleScenes/HDTest/GammaTest/Unlit_Gray_127.mat
-
4SampleScenes/HDTest/GammaTest/Unlit_Gray_127_sRGB.mat
-
8SampleScenes/HDTest/GlobalIlluminationTest/Material/Chrome.mat
-
8SampleScenes/HDTest/GlobalIlluminationTest/Material/Lit_Green.mat
-
8SampleScenes/HDTest/GlobalIlluminationTest/Material/Lit_Grey.mat
-
8SampleScenes/HDTest/GlobalIlluminationTest/Material/Lit_Red.mat
-
4SampleScenes/HDTest/GlobalIlluminationTest/Material/Unlit_Blue.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Dragon/DragonNormalOS.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Dragon/DragonNormalTS.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Dragon/DragonStatue.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Dragon/DragonStatueSpecular.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Blue.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Checker_Blue.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Checker_Green.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Checker_Red.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Checker_White.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Green.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_Red.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Lit_White.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_0.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_1.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_2.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_3.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_4.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_5.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_6.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_7.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_8.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth0_9.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smooth1_0.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_0.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_1.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_2.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_3.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_4.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_5.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_6.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_7.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_8.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric0_9.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Coat_smoothdielectric1_0.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Lit_2DNoise.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Lit_2DNoise_PreTransparent.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Lit_Reject.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Unlit_2DNoise.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Unlit_2DNoise_PreTransparent.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Unlit_Only_2DNoise.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Unlit_Only_Ripple.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Unlit_Reject.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Distorsion_Unlit_Voronoi.mat
-
3SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Fire.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_Mirror.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane_Clear_ior101.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane_Clear_ior15.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane_Dragon.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_plane_EarthMap.mat
-
8SampleScenes/HDTest/GraphicTest/Common/Material/Mat_refraction_sphere_Clear_ior101.mat
999
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1102_Unlit_Distortion.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1103_Unlit_Distortion_DepthTest.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
ImageTemplates/HDRenderPipeline/Scenes/1xxx_Materials/1203_Lit_Transparent.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2001_Dynamic_Directional.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2003_Light_Parameters.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
998
ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2101_GI_Metapass.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
999
ImageTemplates/HDRenderPipeline/Scenes/2xxx_Lighting/2301_Shadow_Mask.unity.png
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
# Unity Scriptable Render Pipeline testbed |
|||
# Unity Scriptable Render Pipeline |
|||
The Scriptable Render Pipeline (SRP) is a new Unity feature in active development. SRP has been designed to give artists and developers the tools they need to create modern, high-fidelity graphics in Unity. Including a built-in Lightweight Render Pipeline for use on all platforms, and a High Definition Render Pipeline (HDRP) for use on compute shader compatible platforms. We hope to release both of these versions in beta with Unity version 2018.1. |
|||
**NOTE**: this is a testbed for a Unity feature that has not shipped yet! The latest commits in this project does not work |
|||
with any public Unity version, and things in it might and will be broken. |
|||
We are committed to an open and transparent development process, and as such you are welcome to take a look around if you are really curious, but we cannot provide support for this feature yet. |
|||
"Scriptable Render Pipelines" is a potential future Unity feature, think "Command Buffers, take two". We plan to ship the feature, and a |
|||
new modern built-in rendering pipeline with it. For now you can look around if you're _really_ curious, but like said above, this is |
|||
not useful for any public Unity version yet. |
|||
For a more detailed overview of the planned features and philosophy behind SRP, refer to the following Gdoc: [ScriptableRenderPipeline](https://docs.google.com/document/d/1e2jkr_-v5iaZRuHdnMrSv978LuJKYZhsIYnrDkNAuvQ/edit?usp=sharing) |
|||
There's a more detailed overview document here: [ScriptableRenderPipeline google doc](https://docs.google.com/document/d/1e2jkr_-v5iaZRuHdnMrSv978LuJKYZhsIYnrDkNAuvQ/edit?usp=sharing) |
|||
|
|||
Did we mention it's a very WIP, no promises, may or might not ship feature, anything and everything in it can change? It totally is. |
|||
This feature is currently a work in progress. We cannot promise that features will work as expected in their current state. Some features may change or be removed before we move to a full release. |
|||
The repository no longer consists of a complete Unity project, but rather |
|||
assumes to be put inside a sub-folder of the `Assets\` folder of an existing |
|||
Unity project. Make sure that your project uses linear color space |
|||
(_Edit > Project Settings > Player_). |
|||
__Note: The Master branch is our current development branch and may not work on the latest publicly available version of Unity. You should always use the latest release tag and latest Unity beta version for testing purposes.__ |
|||
To use the latest version of the SRP, follow the instructions below: |
|||
Perform the following instructions to get a working copy of SRP: |
|||
``` |
|||
> cd <Path to your Unity project>/Assets |
|||
> git clone https://github.com/Unity-Technologies/ScriptableRenderPipeline |
|||
> cd ScriptableRenderPipeline |
|||
> git submodule update --init --recursive --remote |
|||
This repository consists of a folder that needs to be placed in the Assets\ folder of your Unity project. We recommend creating a new project to test SRP. Do not clone this repo into an existing project unless you want to break it, or unless you are updating to a newer version of the SRP repo. |
|||
|
|||
You can use the GitHub desktop app to clone the latest version of the SRP repo or you can use GitHub console commands. |
|||
|
|||
### To clone the repo using the GitHub Desktop App: |
|||
1. Open the GitHub Desktop App and click __Clone a Repository__. |
|||
2. Click the __URL__ tab in the __Clone a Repository__ window |
|||
3. Enter the following URL: https://github.com/Unity-Technologies/ScriptableRenderPipeline |
|||
4. Click the __Choose…__ button to navigate to your project’s Asset folder. |
|||
5. Click the __Clone__ button. |
|||
|
|||
After the repo has been cloned you will need to run the following console commands from the ScriptableRenderPipeline folder: |
|||
|
|||
> git checkout Unity-2018.1.0b2 (or the latest tag) |
|||
> git submodule update --init --recursive --remote (This command fetches the Postprocessing module, which is needed to use SRP) |
|||
## For Unity above 2017.1 beta users |
|||
SRP depends on PostProcessing submodule. Perform the following instructions to get a working copy of SRP: |
|||
> git clone https://github.com/Unity-Technologies/ScriptableRenderPipeline |
|||
> cd ScriptableRenderPipeline |
|||
> git checkout unity-2017.1b5 (or the latest tag) |
|||
> git submodule update --init --recursive --remote |
|||
``` |
|||
|
|||
## For HDRenderPipeline: |
|||
### To download the repo using console commands: |
|||
Enter the following commands in your console application of choice: |
|||
1. Download Unity version compatible with Github release (https://github.com/Unity-Technologies/ScriptableRenderPipeline/releases) |
|||
2. Launch |
|||
3. Create a new Unity project |
|||
4. Set `Color Space` to `Linear` in Player settings, Set Antialiasing to disable in Quality settings for all configuration (Fantastic and High), Set Anisotropic Textures to "Per Textures" |
|||
5. Close Unity |
|||
6. Execute the following commands (or use GitHub interface (ask us)): |
|||
> git submodule update --init --recursive --remote (This is to get the PostProcessing folder) |
|||
> git checkout Unity-2018.1.0b2 (or the latest tag) |
|||
> git submodule update --init --recursive --remote (This command fetches the Postprocessing module, which is needed to use SRP) |
|||
|
|||
7. Re-open the project |
|||
8. In Graphic Settings, for render pipeline, setup the HDRenderPipelineAsset |
|||
## Scriptable Render Pipeline Assets |
|||
The Scriptable Render Pipeline Asset controls the global rendering quality settings of your project and creates the rendering pipeline instance. The rendering pipeline instance contains intermediate resources and the render loop implementation. |
|||
Advice: It is recommended to make a copy of HDRenderPipelineAsset outside of the ScriptableRenderPipeline, so settings are not lost when merging. And setup this new created HDRenderPipelineAsset in GraphicSettings |
|||
You can create multiple Pipeline Assets to store settings for different built platforms or for different testing environments. |
|||
To create a Render Pipeline Asset: |
|||
## For Unity 5.6 beta users |
|||
1. In the Project window, navigate to a directory outside of the Scriptable Render Pipeline Folder, then right click in the Project window and select ___Create > Render Pipeline > High Definition or Lightweight > Render Pipeline/Pipeline Asset.___ |
|||
2. Navigate to ___Edit > Project Settings > Graphics___ and add the Render Pipeline Asset you created to the __Render Pipeline Settings__ field to use it in your project. |
|||
* Unity 5.6 **beta 5-7** should use an older revision of this project, [tagged unity-5.6.0b5](../../releases/tag/unity-5.6.0b5) (commit `2209522d` on 2016 Dec 14). |
|||
"BasicRenderLoopScene" scene is the basic example, need to pick basic render pipeline in Graphics Settings to use it. |
|||
All the other scenes and render pipelines may or might not work. Use of Windows/DX11 is preferred. |
|||
* Unity 5.6 **beta 1-4** should use an older revision of this project, [tagged unity-5.6.0b1](../../releases/tag/unity-5.6.0b1) (commit `acc230b` on 2016 Nov 23). |
|||
"BasicRenderLoopScene" scene is the basic example, with the scriptable render pipeline defaulting to off; enable it by enabling the component on the camera. |
|||
All the other scenes may or might not work. Use of Windows/DX11 is preferred. |
|||
Note: Always store your new Render Pipeline Asset outside of the Scriptable Render Pipeline folder. This ensures that your settings are not lost when merging new changes from the SRP repo. |
|||
|
|||
|
|||
## Using the High Definition Render Pipeline (HDRP) or the Lightweight Pipeline |
|||
|
|||
### Using HDRP |
|||
|
|||
To use HDRP you must edit your project’s __Player__ and __Graphics__ settings as follows: |
|||
|
|||
1. Navigate to ___Edit > Project Settings > Player___ and set the color space of your project to Linear by selecting __Linear__ from the __Color Space__ dropdown. HDRP does not support Gamma lighting. |
|||
2. In the Project window, navigate to a directory outside of the Scriptable Render Pipeline Folder, then right in click the Project window and select ___Create > Render Pipeline > High Definition > Render Pipeline.___ |
|||
3. Navigate to ___Edit > Project Settings > Graphics___ and add the High Definition Render Pipeline Asset you created to the __Render Pipeline Settings__ field. |
|||
|
|||
Note: Always store your High Definition Render Pipeline Asset outside of the Scriptable Render Pipeline folder. This ensures that your HDRP settings are not lost when merging new changes from the SRP repo. |
|||
|
|||
### Using Lightweight Pipeline |
|||
To use the Lightweight Pipeline you must edit your project’s __Graphics__ settings as follows: |
|||
|
|||
1. In the Project window, navigate to a directory outside of the Scriptable Render Pipeline Folder, then right click in the Project window and select ___Create > Render Pipeline > Lightweight > Pipeline Asset.___ |
|||
2. Navigate to ___Edit > Project Settings > Graphics___ and add the Lightweight Render Pipeline Asset you created to the __Render Pipeline Settings__ field. |
|||
|
|||
Note: Always store your new Render Pipeline Asset outside of the Scriptable Render Pipeline folder. This ensures that your Lightweight settings are not lost when merging new changes from the SRP repo. |
953
SampleScenes/HDTest/BasicProfiling.unity
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
14
SampleScenes/HDTest/BasicProfiling/LightingData.asset
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
2
SampleScenes/HDTest/BasicProfiling/ReflectionProbe-0.exr
文件差异内容过多而无法显示
查看文件
文件差异内容过多而无法显示
查看文件
|
|||
v/1 channels chlist 7 B G R compression compression dataWindow box2i � displayWindow box2i � lineOrder lineOrder pixelAspectRatio float �?screenWindowCenter v2f screenWindowWidth float �? Y � u � � ~ @ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ � � ~ @ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@ � � ~ @ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������` � � ~ @ ������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������ |
|||
v/1 channels chlist 7 B G R compression compression dataWindow box2i � displayWindow box2i � lineOrder lineOrder pixelAspectRatio float �?screenWindowCenter v2f screenWindowWidth float �? Y � � � � �C � @B L 0�V<�yX���c�Ǖ�+V<�yX���c�Ǖ�+V<�yX���c�Ǖ�+���������������������������������������������������������������������������������������������������������������������������������������������c�Ǎ�6<lx����c�Ǎ�6<lx����c�Ǎ�6<lx����������������������������������������������������������������������������������������������������������������������������������������������<,xX���c�Dž�<,xX���c�Dž�<,xX���c�Dž���������������������������������������������������������������������������������������������������������������������������������������������� � �C � @B L 0�V<�yX���c�Ǖ�+V<�yX���c�Ǖ�+V<�yX���c�Ǖ�+���������������������������������������������������������������������������������������������������������������������������������������������c�Ǎ�6<lx����c�Ǎ�6<lx����c�Ǎ�6<lx����������������������������������������������������������������������������������������������������������������������������������������������<,xX���c�Dž�<,xX���c�Dž�<,xX���c�Dž����������������������������������������������������������������������������������������������������������������������������������������������@ �� � �? x � @� < |