Skip to main content
gamedev.net
🔒 Locked

Project a texture

Started by Ey-Lord 0 replies 500+ views
Original Post
Ey-Lord
Ey-Lord
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.