Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Why no perspective division in shadowmapping?:0

$
0
0

So basically i store 6 shadowmap mvp matrices ( each representing a different view direction (FRONT,BACK,LEFT,RIGHT,BOTTOM,TOP))

I basically use the formula like this:(model *view) *projection and pass this to shader

However i end up with these matrices

-1  0  0  135.957  0  1  0  -255.867  0  0  -1  331.663  0  0  0  1
  1  0  0  -135.957  0  1  0  -255.867  0  0  1  -331.663  0  0  0  1
  0  0  -1  331.663  0  1  0  -255.867  1  0  0  -135.957  0  0  0  1 …

Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>