kirlosev

Draw a pixel from compute shader

I’m learning about compute shaders recently for a new game I’m going to finish to optimise some an important VFX

It’s pretty fun and challenging to get into something new, I like it.

Today I’ve managed to draw a single red pixel on a texture in a desired position. Very glad!
alt text

CPU based vs Compute Shader based algo
GPU just ate that and didn’t even notice

alt text
alt text

Being limited by CPUs most of the time feels going through 100s of items in a loop feel weird 😄

Yeah! Big progress on using compute shaders! I wanna make those things be painted procedurally and efficiently and more complex

Drawing circles now
alt text

Making things prettier
alt text

Added support for colors
alt text

Implemented color mixing. Not sure if I want to keep it
alt text

Added a chance to create a child splat and it improved the visuals quite a bit
alt text

Trying to understand how to make the shape more irregular now

I’ve found a solution yay
Had to remake the algo from going in the grid line-by-line of pixel to using polar coordinate solution to draw a circle.
More risky to miss a pixel, but works good enough for this case
alt text

Filled them now
alt text

Finally improved the behavior a bit and replaced the old particle based splats in my game with the new compute shader based ones. Really exciting!