Shadows B


Still just working on shadows atm. I spent all my time unfortunately having to remember / relearn how / what you can even copy from X type of buffer to the next. Bottomline is that if you change the resource's inital state and ending state cleverly, IE for the depth buffer write, set it from depth to copy src, then back so copy src to depth buffer write. For the texture, you set copy dest to common, it works fine atleast for me!
This probably would also work for the render target view or whatever other texture buffer you want, but yea even writing "render target view" hurts me a little as I dislike how that's actually just a texture / buffer of memory but you gotta call it that and the API mega discriminates against it in terms of what it can or can't do so you gotta learn all about these things that will more than likely be entirely irrelevant in like 10 or so years at least so yea.

I finally got to writing the shadow code and am currently still buried in even figuring out how to take the depth value of teh scene when rendered from the light source and figuring out where shadows are to go. But the jist appears to be that anything that's really low in value, IE 0, would be mega lit. Anything that's high in value will be a shadowed area since light isn't exactly hitting.
If you view this twitter video https://twitter.com/AndrewNReinke/status/1447625143988068353 you'll kinda see what I mean and especially when you look at the red and black version IE the texture that the shader can access.
So to take that as an example, 0 = black = lit | 1 = red = lit so that just means that you'd pretty much light the entire scene except for tiny areas where a shadow should appear.

So yea, plan is to have a post / video / playable build of this tomorrow assuming all goes well. Thank you for reading and tell me what your thoughts are on the current non shadow build so I can add or fix things alongside the shadow update! Have an awesome day :)

Files

Funmi_Zip.7z 94 kB
Oct 10, 2021
Funmi_Windows.exe 229 kB
Oct 10, 2021
ChallengeList.txt 3.1 kB
Oct 03, 2021
English_Controls.txt 2.7 kB
Oct 03, 2021
English_README.txt 1.2 kB
Sep 16, 2021
日本語_Controls.txt 2 kB
Oct 03, 2021
日本語_README.txt 935 bytes
Sep 16, 2021

Get Funmi

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.