Original Post
Hello everyone. I'm trying to to soft-shadows. I've done shadowmap hard-shadow before and it's working. Now i've got a texture with only my shadowed aera (from the camera PoV) . (wich i'm gonna blur latter) And i struggle to project this on my scene. I know i've got to use Texture2D (or Texture2DProj?) but i cant find the good set of cooridnate. I know i've got : glVertex : the coordinate from my vertex in the world space glVertex * glModelViewMatrix : the coordinate from my vertex in my eye-space (camera PoV) But how do i map those into [O-1] to get my texture where i want? Thanxs.