2 years ago

3d lighting gimmick (read article for info)

https://scratch.mit.edu/projects/777768738/


this is basically meant to emulate sprite 3d objects having different sides- also the sky is misleading the only source of light is at 0,0,0

basically it takes the direction towards the player and the light and finds the difference between them, then takes a percentage from that and uses it to change the brightness based on how far off you are directionally from the light

as i said it's meant to try and simulate seeing a different side that is not exposed to light, which would obviously darken the sprite, unfortunately there are no gradients i can use, and also it's sprite 3d, so it may look weird, but it's functional

i hope this is useful at all



2 comments

Loading...

Next up

meow mow mow

kitty bro

wow I've already abandoned my 3d engine and made a Minecraft clone and abandoned that and then started on a 3rd engine

have you ever got that one moment where you use the eraser and

cylindrical hitbox added

Ignore music

russian

another random ass 3d engine that nobody asked for and nobody will end up using

new adventure shoes :3

shakespear