This is a decal shader on a mesh which be rendered like a standard shader.
This project is licensed under WTFPL. (same as code referenced)
If there is a notation in the file, that takes precedence.
- Place your model in a Unity scene. ->BaseModel
- Create a new material, change the shader to Custom/DecalShader_VRC, and assign a texture. ->DecalMaterial
- Add an empty Gameobject as a child of BaseModel. ->DecalObject
- Add a mesh filter and meshrenderer to DecalObject, change the mesh to your model, and assign DecalMaterial to DecalObject material.
- Add an empty Gameobject as a child of DecalObject. ->DecalProjectorObject
- Add ProjectorInput and ProjectorInputUdon, and assign DecalMaterial to ProjectorInput/Material.
- adjust Position(move DecalProjectorObject position)/FOV/Near/Far/Ortho/Persp