Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: can't do shadow mapping correctly

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Newbie
    Join Date
    Aug 2011

    can't do shadow mapping correctly

    Hi all,

    I've beening trying to do shadow mapping with glsl for a week, But I can't get the correct scene. I guess if it's because I didn't render the depth to texture correctly. and to clamp the coordinates of pixel into [0, 1] for texture look-up, do Ineed to multiply biasMatrix first then divide w or should I divide w then multiply biasMatrix? and can someone provide sample codes that be be built and run? Tnanks.
    Last edited by Sobeit; 05-06-2013 at 05:57 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts