MV Issues creating a light-shadow shader

Hey there! :LZSjoy:

I've been working on a lighting plugin with real-time shadows for a while now, in my own time.
I've come to a decent working build, but am having one single issue that is completely halting any progress on the plugin.
This issue has to do with the shader that I am using to calculate the shadows for each light. For some reason, the maths seem to not be fully correct even though I am pretty sure they should be, which is messing up how the shadows are rendered.

Here is a screenshot of the issue, to give you an idea of what I'm having trouble with:
(yes, I am using a copy of another person's map from their lighting plugin to compare the progress of my plugin compared to theirs. However, I am not using any of their code, simply copied the map over for comparison purposes)
(What you're meant to see is a hidden 98*98 block that blocks out any lighting, creating a shadow, but instead this happens)
1630416688706.png


The shader I am using is a version of the shader described on this site (https://forum.yoyogames.com/index.php?threads/quick-ray-traced-qrt-lighting-tutorial.60842/) but that I have modified to work with RMMV and to allow for more functionality such as animation and light caching.

If you have some knowledge of shaders and would like to discuss this issue and perhaps help out, I'd gladly accept any help I can get! I've been stuck on this issue for quite a while now and ended up leaving it aside for a while, I even tried contacting the original creator of the shader but to no avail.
Bong
The plugin looks awesome :0 Hope you'll be able to figure it out.
The plugin looks awesome :0 Hope you'll be able to figure it out.
Thanks! I had a thought that it might be because MV is too outdated to use these techniques, so I ported the plugin to MZ but the same issue is happening:
1630760042878.png
1630760051984.png
I'm not an expert but I always thought that MV with PIXI is flexible enough for real-time shadows. There are plugins that do this but only partially and there are some FPS problems too.
Alright, it's all fixed!!! This post can be closed for now ^^

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/issues-creating-a-light-shadow-shader.140034/