rypordev / SinglePlayer_Tank_Demo

Single Player proof of concept for a physics based tank party game
0 stars 0 forks source link

Make Paint only affect surfaces facing center #21

Open rypordev opened 1 year ago

rypordev commented 1 year ago

Check dot product of fragment normal with direction to center. If dot product less than zero, don't color in the mask. This will help with bottoms of surfaces being colored by paintballs through the ground and walls, etc.