New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lighting #1881
Lighting #1881
Conversation
…as well as instance renderer.
… syncWithBaseLayer to gdjs.Layer
… is created. Added DismissableAlertMessage in LightingLayerDialog. Added function in runtimescene.js to get lighting layer.
…om lighting layer.
…ated to list keys
@Bouh, I guess that's the problem, the algorithm does care about the other 3 corners as well. The "Light Obstacles Manager" either includes the entire object (which would mean all the corners) or it discards the entire object 🤔. This is why you can see the red-colored ray being cast towards the top-left vertex of the sprite object, which hits the boundary of the "light's area", and we get that purple triangle at top of the sprite. Similarly, for the bottom triangle, the red-colored ray is being cast towards the bottom-right vertex 🤔. |
That is an excellent idea. Some people might want to apply only one or the other, some might want both |
I'm thinking about it now but do you also support hot reload or is it automatic? @4ian |
@Bouh thanks for reminding this, I had to implement it as well 💀.
I guess all we need to do is define a function |
Correct, implement EDIT: Also in the future maybe a function like |
I'm doing a new review now and we should prepare for merging this, I'll give this another try too :) |
A few more comments after testing:
Let's solve all of this and the other comments in the code and we should be good to go with this :) |
Speaking of onDestroy, I made a fix so that removing a behavior and launching a hot-reloading is properly calling |
@4ian quick question:
EDIT: |
Yep there was a change in the code generation! |
Finally merged! :) Let's see what we can achieve more in the remaining days of GSoC! |
Alright, @4ian I have got this branch running on top of master (instead of pixi-v5). This is cherry-picked from the previous branch with some changes related to
LayersList
. Also, notifying @NilayMajorwar about a new command I've added inUseLayersListCommands
which uses theLightingLayerDialog
to edit properties of lighting layer :)(Also resolves #1883)