Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

doom-style sprite billboard

$
0
0

I'm trying to write a shader that does 8-direction sprite billboarding such as in the original Doom. The obvious idea is to try to use a dot-product between the sprite forward-vector and the camera forward-vector, and use this to change the texture coords on my spritesheet. I just cant figure out this math…Even though I've done a lot of searches…


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>