Fixed rotation on beam sprites?
Posted: Thu Jun 23, 2016 5:44 pm
by Jake
I'm trying to draw beams so that the texture always faces up rather than the default billboard rotation but I'm not sure where to start, or if it's possible. I'm hoping somebody here might know
Re: Fixed rotation on beam sprites?
Posted: Thu Jun 23, 2016 5:48 pm
by iPlayer
You need a specific VMT/SPR-file with "$spriteorientation" shader.
https://developer.valvesoftware.com/wiki/Sprite#.22.24spriteorientation.22_parameters_for_.vmtAs you can see, "default billboard location" is
Code: Select all
"$spriteorientation" "vp_parallel" // Always faces the player (all angles are changing)
You need
Code: Select all
"$spriteorientation" "parallel_upright" // Faces the player, but keeps upright (one angle is unchanged)
Re: Fixed rotation on beam sprites?
Posted: Mon Jun 27, 2016 11:23 pm
by Jake
I'll give it a shot, thanks!