Post AcHB5fygor8c7TP4Pw by mrf@mastodon.gamedev.place
(DIR) More posts by mrf@mastodon.gamedev.place
(DIR) Post #AbuBVnubTSvHcVs9uC by mrf@mastodon.gamedev.place
2023-11-17T15:50:24Z
1 likes, 0 repeats
Meanwhile I'm finishing my mesh decal system... this time it also has a fully GPU runtime implementation! I'm going to release it a separate asset, see thread: https://forum.unity.com/threads/bakery-decals-does-anyone-need-this.1373097/
(DIR) Post #AbuBVpvjyD1LscQ5xI by mrf@mastodon.gamedev.place
2023-11-17T15:51:56Z
0 likes, 0 repeats
GPU decals are pretty fast to spawn, so you can even do it every frame...
(DIR) Post #AbuBVsIr9EhREtFaGO by mrf@mastodon.gamedev.place
2023-11-17T15:52:31Z
0 likes, 0 repeats
Looking at this, I also decided to implement a special "trail" mode for things like tire tracks!
(DIR) Post #AbuBVuPfItKnmaS39c by mrf@mastodon.gamedev.place
2023-11-17T15:53:24Z
0 likes, 0 repeats
Something that I should perhaps also mention: lightmaps are a first-class citizen in this system, meaning your decals will always get correct baked lighting from surface underneath.
(DIR) Post #AbuBVwZJI0EoT4ymSu by mrf@mastodon.gamedev.place
2023-11-17T15:55:38Z
0 likes, 0 repeats
Decals are completely mesh-based. Once they're generated, you're basically just drawing a batched mesh with alpha-blending (or without if it's opaque). Meshes can be serialized, optimized, combined, etc, as usual. No need for full-screen DBuffers or having all your materials to know about decals.
(DIR) Post #Ac1jScalrUZQBvyApk by mrf@mastodon.gamedev.place
2023-11-21T09:20:28Z
2 likes, 0 repeats
Decal normal mapping (tangents generation) and skinning (currently CPU only, but fast enough) are finished and tested (don't mind the broken bounding box, it's fixed already)
(DIR) Post #AcHB5fygor8c7TP4Pw by mrf@mastodon.gamedev.place
2023-11-21T10:40:05Z
0 likes, 0 repeats
A bit more of that normal-mapped decal testing
(DIR) Post #AcHB5gwxCnLN8NbCLo by mrf@mastodon.gamedev.place
2023-11-28T20:16:40Z
1 likes, 0 repeats
Having fun making example scenes for the decal system 😅
(DIR) Post #AcHBYimZTGZDDQaK4O by mrf@mastodon.gamedev.place
2023-11-28T20:20:43Z
2 likes, 1 repeats
Also made drifting fun in my game! (skidmarks exaggerated)