Coder Social home page Coder Social logo

stalomeow / starrailnprshader Goto Github PK

View Code? Open in Web Editor NEW
446.0 6.0 90.0 33.94 MB

Fan-made shaders for Unity URP attempting to replicate the shading of Honkai: Star Rail.

License: GNU General Public License v3.0

C# 65.60% HLSL 15.20% ShaderLab 19.20%
anime game honkai-star-rail honkai-starrail hoyoverse mihoyo npr shader star-rail starrail

starrailnprshader's Introduction

StarRail NPR Shader

GitHub Release GitHub Release Date GitHub License

Documentation | 简体中文

Fan-made shaders for Unity URP attempting to replicate the shading of Honkai: Star Rail. The shaders are not 100% accurate because this project is not a reverse engineering - what I do is to replicate the in-game looks to the best of my ability.

Sparkle Firefly
sparkle firefly

Features

Character Shaders

  • Honkai Star Rail/Character/Body
  • Honkai Star Rail/Character/Body (Transparent)
  • Honkai Star Rail/Character/EyeShadow
  • Honkai Star Rail/Character/Face
  • Honkai Star Rail/Character/FaceMask
  • Honkai Star Rail/Character/Hair

Rendering

  • Both Game model and MMD model.

  • Support Forward and Forward+ rendering paths.

  • A single RendererFeature to manage all custom passes.

  • Provide C# API to control some rendering behavior.

  • Characters receive only scene shadows and ignore self-shadows.

  • Per-object shadow, supporting up to 16 shadows on the same screen.

  • Custom bloom using the method shared by Jack He in Unite 2018.

  • Custom ACES tonemapping. The formula is

    $$f(x)=\frac{x(ax+b)}{x(cx+d)+e}$$

    where $a,b,c,d,e$ are all parameters.

Editor

  • Customized material editor.
  • Configurable asset processor integrated with Unity preset system.
  • Automatically smooth normal.
  • Automatic material setup.
  • Build processor and Shader stripper.
  • material.json inspector.

Special Thanks

  • miHoYo / HoYoverse
  • Razmoth
  • °Nya°222

Star History

Star History Chart

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.