https://github.com/lukakostic/UnySplat
Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling
https://github.com/lukakostic/UnySplat
Last synced: about 2 months ago
JSON representation
Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling
- Host: GitHub
- URL: https://github.com/lukakostic/UnySplat
- Owner: lukakostic
- Created: 2018-08-06T05:05:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T05:13:43.000Z (almost 7 years ago)
- Last Synced: 2024-11-10T20:37:24.458Z (7 months ago)
- Language: C#
- Size: 159 KB
- Stars: 39
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-unity-open-source-on-github - UnySplat - Splatoon-like painting in unity on any-shape mesh colliders (Script Utility)
README
# UnySplat
Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling.Left click - raycast paint (center of screen)
Right click - throw tomato (paint blob)
It just boils down to:
1. Make a good UV map (no overlapping faces)
2. Raycast and get raycasthit.textureCoords
3. Extract x and y components and use SetPixel to paint
4. Add some paint randomization and spread, and some other stuff to make it look nicer