Looking at some shader code that starts with "const int i = 32768;" As a coder this completely breaks my mind that someone would do this. All variables are 1 or 2 letters, iterators are h, t, x, and it ... I have no idea what is going on but am determined to figure it out.
-
Show this thread
-
Replying to @AxiomVerge
That's an overflow for a short int and would be - 1. Maybe they're using it as a bit mask? Or to multiply by - 1 quickly? Or to like... Reverse iteration? Idk
1 reply 0 retweets 0 likes
Replying to @odd_dimensions
It appears to be used as a bit shift... since it's a shader you divide by 32768 and it's like shifting right by 15. It's storing a 45-bit number as floats and then getting them back again for more precision
10:36 PM - 11 Dec 2020
0 replies
0 retweets
1 like
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.