All Projects → MaxwellGengYF → Unity Optimized Cginclude File

MaxwellGengYF / Unity Optimized Cginclude File

Deeply optimized Unity CGInclude files

Labels

Projects that are alternatives of or similar to Unity Optimized Cginclude File

Reshade Xhair
A heavily customizable, fullscreen-compatible crosshair overlay for ReShade
Stars: ✭ 57 (-44.66%)
Mutual labels:  hlsl
Fluffie
Stars: ✭ 69 (-33.01%)
Mutual labels:  hlsl
Gpu Planetary Rendering
GPU atmosphertic scattering and planet generation in Unity 3D
Stars: ✭ 92 (-10.68%)
Mutual labels:  hlsl
Jl S Unity Blend Modes
👾 Collection of Unity shaders that support blend modes like photoshop layer style (Darken, Multiply, Linear Burn, etc)
Stars: ✭ 62 (-39.81%)
Mutual labels:  hlsl
Sgi
Stargate Invasion is a mod for Sins of a Solar Empire.
Stars: ✭ 67 (-34.95%)
Mutual labels:  hlsl
Stormshade
Custom reshade build (unlocked z-depth) + shader preset for Final Fantasy 14.
Stars: ✭ 83 (-19.42%)
Mutual labels:  hlsl
Ray Mmd
🎨 The project is designed to create a physically-based rendering at mikumikudance.
Stars: ✭ 1,045 (+914.56%)
Mutual labels:  hlsl
Gshade
GShade is a heavily modified fork of ReShade that features numerous improvements as well as a selectively-unlocked depth buffer for specific online games.
Stars: ✭ 97 (-5.83%)
Mutual labels:  hlsl
Pbr proj
Shader of PBR for Unity
Stars: ✭ 68 (-33.98%)
Mutual labels:  hlsl
Gteleporter
Stars: ✭ 91 (-11.65%)
Mutual labels:  hlsl
C208 Msfs2020 Fix
Improvements to the Caravan in MSFS2020
Stars: ✭ 66 (-35.92%)
Mutual labels:  hlsl
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+11257.28%)
Mutual labels:  hlsl
Hexbokehblur
Hexagonal Bokeh Blur
Stars: ✭ 85 (-17.48%)
Mutual labels:  hlsl
Nnao
Neural Network Ambien Occlusion based on http://theorangeduck.com/page/neural-network-ambient-occlusion
Stars: ✭ 57 (-44.66%)
Mutual labels:  hlsl
Dq Skinning For Unity
Stars: ✭ 93 (-9.71%)
Mutual labels:  hlsl
Sweetfx
Stars: ✭ 51 (-50.49%)
Mutual labels:  hlsl
Plannarshadowforunity
Planar Shadow is very cheap and useful for mobile games.
Stars: ✭ 74 (-28.16%)
Mutual labels:  hlsl
Particlemotionvector
Shows how to support rendering motion vectors within the standard particle system of Unity.
Stars: ✭ 97 (-5.83%)
Mutual labels:  hlsl
Cs2x
Transpiles a C# subset to non .NET languages and runtimes. (Powered by Roslyn)
Stars: ✭ 97 (-5.83%)
Mutual labels:  hlsl
Hlslexplorer
See how hardware understands your HLSL
Stars: ✭ 91 (-11.65%)
Mutual labels:  hlsl

Optimized CGInclude files

Introduction:

Standard Lighting Model:

  • In Unity, The Standard PBR Lighting Model use GGX algorithm as direct light specular and surfaceproduction simulate as indirect reflection specular. However, it looks "tough" and not "comfortable" for some artists who used to talked about that with me. Thus, I determine to create this project to transform Unity's standard lighting model into custom lighting model.
  • For direct light, an optimized Cook Torrence algorithm has been provided, which take less instructions than the official one with the same (or similar) result. For indirect light, we use Pre-Integrate ramp texture to simulate the surface production and attenuation by using Montcalo Intergration. demo demo

PCSS Directional Shadow:

  • We use NVIDIA PCSS to replace Unity's soft shadow algorithm. By randomly sample 16, 32 or 64 times, the edge of shadow will looks much better. We strongly suggest that users should add Temporal AA post processing effects in the scene. The Temporal Filter will reduce the noise of the soft shadow. demo

Manual:

Standard Lighting Model:

  1. Copy and replace the files in the folder "CGIncludes" to Unity/Editor/Data/CGIncludes(Remember to make backup);
  2. Drag "Resources" and "PreIntSpecular.cs" into your scene and enable the component in a random GameObject, usually the "PreIntSpecular.cs" should be singleton in the whole game.
  3. The Lighting Model should support Standard shaders and regular surface shaders. If you are writing your own VF PBR shaders, make sure you are calling the methods in UnityStandardBRDF.cginc.
  4. Enjoy your new lighting!

PCSS Directional Shadow

  1. Drag the folder "Directional Shadow" into your Unity project.
  2. Open "Edit/Project Settings/Graphics" interface.
  3. Replace the "Screen space shadows" to custom shader and add "Hidden/PCSS_Directional" as the custom shader.
  4. Enable the component "PCSS_Directional.cs" in your scene. This component should be singleton in one scene(not in the whole game).

Supported Version:

  • This plugin should support Unity 2017, Unity 2018 and newer version.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].