Directional Shadows

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
0x72
Citizen
Posts: 55
Joined: Thu Jun 18, 2015 9:02 am

Directional Shadows

Post by 0x72 »

Hi there! Long time no see!

I'm struggling with directional lights.

I believe currentDepth (the distance from light used in final render) is correct (or it's `1-x`, not sure), but everything else - not sure.

I feel like it's a minor change missing and I will feel stupid when I find it.

I've prepared minimal example (attachment, rotate withq/e).

Any tips appreciated!
Thanks in advance.
shadows.png
shadows.png (31.29 KiB) Viewed 1518 times
shadows.love
(68.78 KiB) Downloaded 70 times
User avatar
0x72
Citizen
Posts: 55
Joined: Thu Jun 18, 2015 9:02 am

Re: Directional Shadows

Post by 0x72 »

Still on it but one thing that was definitely wrong was sometimes sending matrices with row and sometimes with column MatrixLayout :/
User avatar
0x72
Citizen
Posts: 55
Joined: Thu Jun 18, 2015 9:02 am

Re: Directional Shadows

Post by 0x72 »

Heck, that was it!

Sending the fixed version for anyone interested.
shadows2.love
(68.76 KiB) Downloaded 114 times
shadows_2.png
shadows_2.png (16.1 KiB) Viewed 1434 times
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 4 guests