Search
Saturday, 17th of October 2020, 1:34:42 UTC
12:24:48
Shinmera
I have a very bizarre problem where the background transition mechanism I introduced works only after I recompile a class shader, but then the shadow map stops working
12:33:54
Shinmera
how in the hell is this possible
12:34:00
Shinmera
the two mechanisms seem completely unrelated
12:44:29
Shinmera
AAAAAAAAAAAAAAAAAAAGGH
12:44:38
Shinmera
fuck why do I always encounter this shit whenever I do anything
12:50:43
Shinmera
It only happens when the shader-program of the background entity is re-linked. and I don't understand why.
12:55:43
Shinmera
it happens when the buffers are rebound. but why.
13:02:09
Shinmera
the buffers are rebound to the same binding points and they should be set up correctly, too
13:02:13
Shinmera
so what the hell is the issue??
13:06:17
Shinmera
It seems to only get confused if there's multiple buffers involved.
13:06:34
Shinmera
But I'm verifying this and the locations it sets the buffers to are the same regardless
13:06:46
Shinmera
whether at first start or after
13:08:04
Shinmera
I don't understand this at all, but it seems like it's only ever binding one of the buffers correctly
13:08:26
Shinmera
The first time (on start) it binds the lighting buffer and after recompile it binds the background buffer
13:13:51
Shinmera
I think I was somehow using inconsistent buffer binding points (even though it doesn't look like it)
13:13:57
Shinmera
manually allocating those seems to fix the problem.
13:24:40
Shinmera
https://twitter.com/Shinmera/status/1317456351245852672
Saturday, 17th of October 2020, 13:34:42 UTC