Uber Simple Lit Shader
Description :
I created this shader to serves as a standard template and default shader for my team. To achieve needed graphic features while maintaining optimized performance.
Feature Lists :
Rendering Pipeline : Support both Built-In and URP.
Platform : Tested on PC, Android, iOS and Nintendo Switch.
Usage Example :
Example 1
Example 2
Helper Tools box :
This feature is utility tools to increase more productivity and speed when working with this shader.
Features List :
[1.Vertex Color Debugger] Use to debug vertex color
[2.DefaultValue] Use to reset all value to default
Helper Toolsbox overview
Vertex Color Debugger
Set Default
Surface Option Feature :
Control surface rendering of material by your choice.
Surface Option overview
Alpha Clip Feature
Main Color Feature :
Color mode feature overview
Features List :
[1.Texture Only] Use color from texture only
[2.Blend vertex color] Blend vertex color of mesh with color from texture
Vertex Color blending :
Example 2 : Vertex Color additional color
Example 4 : Vertex Color as a fake aura
Example 1 : Vertex Color as AO
Example 3 : Vertex Color as Black fog and fake light
UVs coordinate Feature :
Feature overview
Features List :
[1.Local] Use UVs coordinate from mesh UV channel 1
[2.World] Use world UVs coordinate
World UV Coordinate
Local UV Coordinate
Top blending Feature :
Blend another texture with your object's surface along the Y direction.
Feature overview
Example 1
Example 2
UV Animation Feature :
Features List :
[1.Panner] Scrolling Offset U and V of UVs
[2.Rotator] Rotate UV from center
UV Scrolling feature
UV Rotation feature
Example : Panner
Example : Rotator
Emission Feature :
Features List :
[1.Default] A default emission color with 2 parameters, emission texture and tint color (HDR)
[2.Blink] Allow emission color to blink by itself
[3.Fill] Fill emission from bottom to top to create specific effect
[4.Glint] Create a glint effect on meshes from selected direction.
feature overview
Example 2 : Fill
Example 3 : Glint
Example 1 : Blink
Vertex Animation :
By Custom Value :
Control vertex animation based on prepared parameters.
Custom Value animation feature overview
Example 1 : Rotation
Example 2 : Transition
Example 3 : Both
By Vertex Color Animation :
Control vertex animation by assign vertex color into mesh.
Vertex color animation feature overview
Example 2 : Scale
Example 1 : Bend
Dissolve Feature :
Make objects fade away using the dissolve method. The visual is controlled by your dissolve mask texture and color.
Dissolve Feature overview
Usage Example
My Graph :
Tools used
Shader Creation
Unity (Built-In, URP)
Amplify Shader Editor (Shader creation)
HLSLPROGRAM (Shader creation)
C# (Custom Editor and Utility tools)
Asset creation
MAYA (Modeling, UV)
Nvidia Mental ray (Vertex Color Baking)
Photoshop (Mesh Texture)
Substance Designer (Texture)
Acknowledgements
Visual use cases inspiration
The Legend of Zelda: Ocarina of Time
The Legend of Zelda: skyward sword
Top coverage feature inspiration
Immortal Fenyx Rising by Vincent Machine à Café Dérozier
UV World feature inspiration
3D and 2D Game Asset Creation
My game art team at Nanuq Studio Co., Ltd