Skip to content
forked from z3y/shaders

A Standard Shader and Surface Shaders replacement for Unity for Built-In pipeline and forward rendering (VRChat)

License

Notifications You must be signed in to change notification settings

Okabintaro/z3y_shaders

 
 

Repository files navigation

Shaders

A Standard Shader and Surface Shaders replacement for Unity's Built-In pipeline and forward rendering in linear color space, created for use in VRChat.

Installation

VRChat Creator Companion

Unity Package Manager

  • Have git installed
  • Open the Package Manager window Window > Package Manager
  • Press + in the top left and package from git URL
https://github.com/z3y/shaders.git
  • To install a specific version add #v(version) to the end of the URL with the version number from the release labels.

Features

Feature Description
Accurate PBR Shading More accurate Fresnel calculations and updated lighting functions from Filament
Bakery Features Mono SH, Lightmapped Specular, Non-Linear SH and Non-Linear Light Probe SH supported
Geometric Specular AA Reduced specular shimmering
Antialiased Cutout Alpha to Coverage
Lightmap Specular Occlusion Lightmap intensity used for occluding reflection probes for reduced reflections in dark areas
Bicubic Lightmap Smoother lightmap at the small cost of sampling it multiple times and performing bicubic filtering in the shader
Improved Parallax Increased Parallax steps count
Emission Multiply Base Multiply Emission with Albedo
Emission GI Multiplier Adjusts emission intensity used for baking lightmaps in the Meta pass
Transparency Modes Cutout, Fade, Premultiply, Additive, Multiply
Non-Important lights per pixel Cheaper real-time lights done in one pass. Does not work with lightmapped object
Bakery Alpha Meta Surface inputs used in the shader are properly passed to the meta pass for baking instead of just reading the main texture and main color
Bakery Alpha Dither Semi-Transparent baked shadows. Available only in Bakery L1 mode
Baked Area Light Specular Approximation Reduced smoothness in areas where there is less directionality for more accurate lightmapped specular
Centroid Lightmap UVs Fix for lightmap bleeding with very tight packing
LTCGI, Area Lit Realtime Area lights
Box Projection on Quest Force enables box projection even if it's disabled in Unity
Anisotropy Supports Tangent maps
Shader Config A very customizable way of enabling/disabling existing features and adding new ones to all included shaders
Texture Packing A tool for texture packing included: Lit > Texture Packing and in the material inspector for packed textures
Screen-Space Reflections

You can create surface-like shaders Create > Shader > Lit Shader Variant. Having just one shader will not fit everyone's workflow. With some basic shader knowledge you can create exactly what you need while still having all the advanced lighting and shader features.

The default shader created with this system is Lit v3 and other variants included at Lit Variants/

Supports PC and Quest.

Most of the features supported in the modified experimental Shader Graph version: https://github.com/z3y/ShaderGraph

License

Core RP Licensed under the Unity Companion License

Some additional code from Google Filament Licensed under Apache License 2.0

The rest under MIT

Patreon | Bug Reports | Discord Support

About

A Standard Shader and Surface Shaders replacement for Unity for Built-In pipeline and forward rendering (VRChat)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HLSL 81.6%
  • C# 17.1%
  • ShaderLab 1.3%