Don't do this. It's expensive as hell to implement and player's won't notice it.
https://twitter.com/ShakaInc/status/1308499637846839301 …
-
0:23 -
W odpowiedzi do @mrhands31
Would it be expensive? I would just have 2 (or 3, if you want multiple directions) textures, and when the player enters a trigger, switch to the directional texture that you want in the shader. It doesnt need to be reactive, so you could even do the check every .5 sec
3 odpowiedzi 0 podanych dalej 1 polubiony
W odpowiedzi do @DraconInt @mrhands31
no you don't even need to do this, you just keep track of player0 on the client, feed their pos into a uniform buffer, and then the pixel shader just switches animations based on proximity - no need to touch the CPU for this
13:10 - 23 wrz 2020
0 odpowiedzi
0 podanych dalej
1 polubiony
Wydaje się, że ładowanie zajmuje dużo czasu.
Twitter jest przeciążony lub wystąpił chwilowy problem. Spróbuj ponownie lub sprawdź status Twittera, aby uzyskać więcej informacji.