Code Monkey home page Code Monkey logo

unity_starrail_crp_sample's Introduction

Unity_StarRail_CRP_Sample

An example of a custom rendering pipeline that restores the rendering of HSR

Effect

Note

Initial effect. Will continue to adjust and optimize later.

[Scene] March 7th Room:

6

5

Biu1_720p.mp4
Mar7thRoom3_720p.mp4

Support Decal Light with Shadow --

DecalLight2_720p.mp4
[New Scene] Parlor Car:

Unfinished

ParlorCar

[New Scene] Characters Show:

The character has no self shadow, but can receive scene shadow at the same time.

CharactersShow2_720p.mp4

Tip

For more Effects Pictures and Videos, look at folder Temp.

Demo

Here is a very simple demo for Windows x64: Demo Release v0.0.4

Demo for Android is coming.

Tip

The operation is similar to the game, read Release for more details.

Project Requirements

  • Unity 2022.3.8f1 (Base on URP)
  • Git and Git LFS

Important

Before clone this project, make sure you have install Git LFS. Otherwise some big FBX files will not clone successfully.

Download Git from this website, and install.

Then run git lfs install.

Use git lfs clone https://github.com/ChillyHub/Unity_StarRail_CRP_Sample.git to clone.

If still cannot download it completely, please download the unitypackage package from Demo Release v0.0.4.

Warning

Currently, there may be memory leak problem in multiple cameras and preview cameras, which needs to be fixed. Please note the memory usage.

About Custom Render Pipeline

Use a single Renderer Feature to manage custom passes. Use stencil deferred rendering for more colorful lighting. Also, per object shadows are used on the characters to achieve more variable shadow effects. This pipeline also has SSR and TAA Pass to help express more delicate images.

The following is the flow chart of the rendering pipeline:

Custom Render Pipeline

Tip

For more information, read RenderPipeline.md and get details.

Source of Assets

  • miHoYo: models, textures, animations of characters.
  • Viero月城:models, textures of scenes. (such as Mar7th Room)

Future

  • Add HBAO
  • Add Volume Light
  • Add Screen Space Fog

unity_starrail_crp_sample's People

Contributors

chillyhub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.