Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleDecal

A simple solution to adding decals to a Unity Scene.

Three decal projectors on crates

Decals can be added to an object by using the context menu in the hierarchy, and creating a new Decal Project under "3D Objects".

Creating a new decal projector

Any material can be used in the decal's MeshRenderer. It is simply new geometry, copied from the intersecting geometry and clipped to the Decal Projector space.

Clipping work is done via a job, and is extremely fast. The job itself is allocation-free, though Mesh generation has a cost.

TODO:

  • In Edit mode, if the mesh is not read/write, load the aset from disk instead. Obviously, this won't be supported at runtime.

About

A simple solution to adding decals to a Unity Scene.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages