Skip to main content
GameDev.net gamedev.net
🔒 Locked

Depthmap with fbo, problem

Started by Aladore Apr 22, 2009 at 8:17 AM 1 replies 750+ views
Original Post
Aladore
Aladore
Hello ! I have a problem with fbo: I get a depthmap but my depthmap is ... inverted ? Black is white, and white is black. It's not a real problem, but I would like understand why it's like that ... Here the code: http://pastebin.be/18000 And the render: http://img87.imageshack.us/my.php?image=rendu.png Somebody has an idea ?
V-man
V-man
Far things have the maximum value and nearer things have lower values. In floating point format, it is 1.0 to 0.0
Aladore
Aladore
Yes, I realized that.
But, how change this ?

Topic Locked

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

Sign in to reply to this topic.