Skip to content

Show thousands of damage numbers in DOTS.

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

nidaynere/damage-numbers-DOTS

Repository files navigation

damage-numbers-DOTS

Show thousands of damage numbers in DOTS.

It uses a hacky technique to draw numbers on GPU instanced quads. To draw 648, this code block

                float texturePitPoint = myNumber / 10;
                float uvProgress = input.uv.x - myNumberIndex / numberCount;
                float textureProgress = uvProgress * numberCount / 10;
                float fX = texturePitPoint + textureProgress;
                float2 uv = float2(fX, input.uv.y * _UVY.x - _UVY.y);

draw the pixel color like this:
to achieve this:


This is a module from: Malignant Survivors (https://store.steampowered.com/app/2783610/Malignant_Survivors)

*Max possible number is 999.999

About

Show thousands of damage numbers in DOTS.

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published