Oni @oni.team-nutshell.dev · Mar 30

I can finally mark it as complete :')

1 likes 1 replies

?

Replies

Oni · Mar 30

And shadowmaps can now be sampled in custom fragment shaders! NtshEngn_directionalLightShadows(i, p) with i being the directional light index and p the position in the world, returns a value from 0 (in shadows) to 1 (not in shadows) (in between for shadow edges) (same for point and spot lights)