Skip to content

unitycoder/URP_GlitterLit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

URP Lit shader with glittering effect

Inspired by GDC talk Sand Rendering in Journey.

Add glittering effect on top of the object surface.

result result result

How To USE

Toggle the Enable Glitter option in the material inspector

image

Put your own noise texture into the glitter noise map property. Messing around the GlitterSize and GlitterGlossness properties.

Theirs 2 methods through toggle _UseLightDirection option:

  • _UseLightDirection enable : A specular glitter based on NdotH.
  • _UseLightDirection disable : A specular glitter based NdotV only (which is the one Journey use).

image

Since the shader is mostly stripped from official Lit.shader. feel free to put your own lighting logic inside CustomLitForwardPass.hlsl

DEMO

movie_002.mp4

About

URP Lit shader with glittering effect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ShaderLab 49.9%
  • HLSL 32.9%
  • C# 17.2%