GithubHelp home page GithubHelp logo

claytonious / scriptablerenderpipeline Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yaoya/scriptablerenderloop

0.0 1.0 0.0 4.11 GB

Scriptable Render Pipeline

License: Other

C# 80.98% GLSL 0.25% HLSL 13.56% ShaderLab 5.16% Python 0.01% Batchfile 0.01% Shell 0.03%

scriptablerenderpipeline's Introduction

NOTE: We have migrated reported issues to FogBugz. You can only log further issues via the Unity bug tracker. To see how, read this.

Unity Scriptable Render Pipeline

The Scriptable Render Pipeline (SRP) is a Unity feature designed to give artists and developers the tools they need to create modern, high-fidelity graphics in Unity. Unity provides two pre-built Scriptable Render Pipelines:

  • The Universal Render Pipeline (URP) for use on all platforms.
  • The High Definition Render Pipeline (HDRP) for use on compute shader compatible platforms.

Unity is committed to an open and transparent development process for SRP and the pre-built Render Pipelines. This means that so you can browse this repository to see what features are currently in development.

For more information about the packages in this repository, see the following:

Package CI Summary

Package Name Latest CI Status
com.unity.render-pipelines.core ReleaseBadge ReleaseBadge
com.unity.render-pipelines.universal ReleaseBadge ReleaseBadge
com.unity.render-pipelines.high-definition ReleaseBadge ReleaseBadge
com.unity.render-pipelines.high-definition-config ReleaseBadge ReleaseBadge
com.unity.shadergraph ReleaseBadge ReleaseBadge
com.unity.visualeffectgraph ReleaseBadge ReleaseBadge
com.unity.render-pipelines.lightweight ReleaseBadge ReleaseBadge

How to use the latest version

Note: The Master branch is our current development branch and may not work on the latest publicly available version of Unity. To determine which version of SRP you should use with your version of Unity, go to Package Manager (Window > Package Manager > Show Preview Packages) to see what versions of SRP are available for your version of Unity Editor. Then you can search the Tags tab of the Branch dropdown in the SRP GitHub for that tag number.

Regarding package number, we have adopted those numbers Unity binaries 2019.1 is compatible with 5.x version Unity binaries 2019.2 is compatible with 6.x version Unity binaries 2019.3 is compatible with 7.x version Unity binaries 2020.1 is compatible with 8.x version

To use the latest version of the SRP, follow the instructions below:

This repository consists of a folder that should be cloned outside 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.

After cloning you will need to edit your project's packages.json file (in either UnityPackageManager/ or Packages/) to point to the SRP submodules you wish to use. See: https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/TestProjects/HDRP_Tests/Packages/manifest.json

This will link your project to the specific version of SRP you have cloned.

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 base 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)

To download the repo using console commands:

Enter the following commands in your console application of choice:

> cd <Path to your Unity project>
> git clone https://github.com/Unity-Technologies/ScriptableRenderPipeline
> cd ScriptableRenderPipeline
> git checkout Unity-2018.1.0b2 (or the latest tag)

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.

You can create multiple Pipeline Assets to store settings for different built platforms or for different testing environments.

To create a Render Pipeline Asset:

  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 > Rendering > High Definition or Universal Render 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.

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 Universal Render Pipeline (URP)

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 > Rendering > High Definition Render Pipeline Asset.
  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 URP

To use the Universal 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 > Rendering > Universal Render Pipeline Asset.
  2. Navigate to Edit > Project Settings > Graphics and add the Universal 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 Universal settings are not lost when merging new changes from the SRP repo.

Sample Scenes in ScriptableRenderPipelineData

If you want some sample scenes to use with SRP, you can find them at the ScriptableRenderPipelineData GitHub repository.

Clone the repo into your project's Assets\ folder.

Previous iterations of the ScriptableRenderPipeline repo owned this sample scene data, in case you noticed it before, and wondered where it went.

scriptablerenderpipeline's People

Contributors

aleks01010101 avatar alelievr avatar anisunity avatar chman avatar egomeh avatar evgeniig avatar fabien-unity avatar francescoc-unity avatar fredericv-unity3d avatar fredpointzero avatar julienignace-unity avatar kink3d avatar lou-andreev avatar martint-unity avatar mmikk avatar nerites avatar pauldemeulenaere avatar paulm-unity avatar pbbastian avatar phi-lira avatar remyunity avatar robbiesri avatar rslysz avatar sebastienlagarde avatar slunity avatar sophiaaar avatar stramit avatar uygar3d avatar verasl avatar zeroyao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.