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.
-
-
yeah for sure sounds like something got ported over from a mathematical formula that used letters like that
-
We had a programmer join our team for awhile at the dayjob. She'd only written in Fortran and gave me code with two letter variables everywhere. The math was pretty heavy, so even when I refactored the code, I had no idea what to rename the variable to so they're still in there.
End of conversation
New conversation -
-
-
This isn't auto-generated code, is it? Or something run thru an obfuscator?
-
In my professional opinion, it's really crazy complicated math code.
End of conversation
New conversation -
-
-
That's a special level of hell
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
HORRIBLE
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Shaders always feel like black magic to me, but when I finally I understand them it's very satisfying. By the way, this is my favorite resource when it comes to learning shaders:https://catlikecoding.com/unity/tutorials/rendering/ …
-
Thanks for the link. I have been poking at this shader for a few days now. It does a bunch of things I don't care about and one thing that I want to use for myself, but everything is mixed together and uncommented so it's a puzzle
End of conversation
New conversation -
-
-
This is giving me secondhand anxiety lol. Naming really matters
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.