In Pico Tanks, we push the trees with a vertex shader. Here's how we do it!
#picotanks #gamedev #madewithunity #unity3d #shaderpic.twitter.com/dqzTxOkxxu
-
-
The capability has been there for ages but a lot of what the GPU can do to optimise the reading of textures gets eliminated if you read them in the vertex shader.
-
Called vertex texture fetch.. was really essential to building instancing system for characters, but also a perf hit. not sure if it’s still the best way or if ssbo’s are better. Full time job to profile this stuff.
End of conversation
New conversation -
-
-
You can do such mad shit in the vertex shader now. The ability to read multiple (!) textures at once means you've got four channels to play with per texture with surprisingly little overhead outside of initial load.
-
Apart from the texture cache hit, the interpolator setup and the possible stalls ;)
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.