Skip to content

Shadow Volume for Static-Scene-Object of Unity

Notifications You must be signed in to change notification settings

nw1024/ShadowVolume

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shadow Volume

Shadow Volume for Static-Scene-Object of Unity

Advantage

Normally, using Lightmap to present shadow in a scene. If you need sharp shadow edge, a huge size Lightmap texture must be baked. It will cost mush performance during rendering these Lightmap textures. Sometimes, even a size of 4096x4096 texture is not enough to present sharp shadow edge. And so many Lightmap textures will break the Static-Batching.

In this case, Shadow Volume is a solution. It is particularly suitable for Toon-Rendering-Shadow and Polygon-Style-Shadow.

Usage

Scene : Assets/ShadowVolume/Example/Test1.unity Test2.unity

Editor : Window->Lighting->Shadow Volume Setting

img

About

Shadow Volume for Static-Scene-Object of Unity

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 56.8%
  • HLSL 32.1%
  • ShaderLab 11.1%