Coder Social home page Coder Social logo

stalomeow / starrailnprshader Goto Github PK

View Code? Open in Web Editor NEW
434.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

starrailnprshader's People

Contributors

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

starrailnprshader's Issues

Question on how to set up a material

Is there the possibility for you to upload the materials, that you used for your renderings?
I'm having a hard time achieving something similar, mainly with the Face-Shader.
I really appreciate any help you can provide.

材质丢失

sp20240304_025121_066
我添加RendererFeature 后材质好像加载不出来
Snipaste_2024-03-04_02-54-45
image

我是新手,研究了半天没找到问题,如果是常识上的配置出错还请海涵❤️

评论

你老婆真棒(手动狗头)

Import project but script error“CS0246: The type or namespace name 'Stalo' could not be found”

Thanks for your sharing. When I tried import your project but the editor has a error that "Assets\ResModules\Shaders\StarRailNPRShader-main\Scripts\Editor\MaterialDrawers\HSRMaterialIDFoldoutDrawer.cs(4,7): error CS0246: The type or namespace name 'Stalo' could not be found (are you missing a using directive or an assembly reference?)" It seemed that some references or scripts has been missed. :(

关于描边的一些建议

在薄模型的地方比如裙摆,描边会在模型背面产生大色块:
image
可以在outline pass后面再渲染一层背面
image
image

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.