Skip to content

mrdewitt77/CachedShadowMaps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header

Cached Shadow Maps

Cached Shadow Maps is a unity package for caching shadow maps on unity's built in lighting system, storing them (while valid) for later use effectively reduces the number of shadows casters to be rendered each frame. This include automatic recomputation when a light source context is detected to be dirty.


Cached Shadow Maps was developed for the published first person puzzle game Lightmatter, this technology is now released to the public under Apache License 2.0


unity csharp

Usage

  • Edit your Unity projects "Packages/manifest.json" to include the string "com.cnheider.cachedshadowmaps": "https://github.com/cnheider/cachedshadowmaps.git"}.

    Example manifest.json

    {
      "dependencies": {
        "com.unity.package-manager-ui": "0.0.0-builtin",
        ...
        "com.cnheider.cachedshadowmaps": "https://github.com/cnheider/cachedshadowmaps.git",
      }
    }
    

    You can use "com.neodroid.droid": "https://github.com/cnheider/cachedshadowmaps.git#branch" for a specific branch.

Or

  • Download the newest CSM.unitypackage from releases and import into your Unity project.

Or

Demo

demo

Repository Structure


cnheider/cachedshadowmaps         # This repository
│
├── Samples                  # Sample Project
│
├── Editor                   # Editor Implementation
│
├── Runtime                 # Runtime Implementation
│
├── Documentation           # Unity Package Documentation
│
├── Gizmos                  # Icons
│
├── Tests                   # Tests
│
├── .github                 # Images and such for this README
│
├── LICENSE.md              # License file (Important but boring)
├── README.md               # The top-level README
└── TUTORIAL.md             # Very quick tutorial to get you started

Citation

For citation you may use the following bibtex entry:

@misc{cachedshadowmaps,
  author = {Heider, Christian},
  title = {Cached Shadow Maps},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/cnheider/cachedshadowmaps}},
}

About

Cached Shadow Map Solution for Unity

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.4%
  • ShaderLab 3.6%