Mirrored output when using pointShadowLight
-
-
... I am just impressed by this.
I think we need a copy of that program!
-
At first I thought about the bug where you can copy the framebuffer to an image before the first call to update(), then this would be an too elaborate troll to include the error message, blinking cursor and the code is saved indication by Fuze :)
Interesting bug :D
-
So I shared it under NZ6N3MND52.
It is a highly work on progress app, please be gentle... ;-)
You got to start the game, press a for starting and zr for going 3d, then it "crashes"... (Guessing setDrawTarget and shadow lights, but I know nothing)
-
Thanks for reporting. I've seen that error before and I know it was fixed in the past. So this is a regression unfortunately. Although of course it could now be getting caused by a different set of circumstances.
-
Downloaded and ran it a few times, but it doesn't happen for me! I've also changed the
pointShadowLight()
values to the same as they are in your clip, but to no avail! -
@Dave did you tap
a
and thenzr
? For me it crashes when I'm going into 3D 🤷♂️. (Sorry for not cleaning up the code to reproduce a simpler test case .... )(Also: I have only tried undocked, maybe that's a difference?)
-
I can reproduce this, running the program again, doesn't flip it back by the way :P
EDIT: it is correct that if you change pointShadowLight on line 262 to pointLight (without the resolution argument), makes the difference.
I've also noticed that the frame buffer does get copied at the start of the program, but it doesn't appear to have an effect if you leave that out (for instance by creating an empty image) -
Apologies @mario-bodemann I meant to reply to this! Yes, I can reproduce it now. It's now a reported bug and we're working on a fix :)
-
@Dave wohooo, thank you so much! Let me know if I can be "even more"😁 helpful.