Skip to main content
gamedev.net
🔒 Locked

Shadows

Started by StockwellLadSteve Feb 27, 2007 at 7:18 PM 0 replies 550+ views
Original Post
StockwellLadSteve
StockwellLadSteve
Dear All, Wondering if someone can clarify an issue for me. I want to light and shadow a scene using shaders. I have a shader performing lighting calculations and I have a calculated shadow map. Should I pass my shadow map to my lighting shader and simply colour according to whether or not the pixel is in shadow? Or am I oversimplifying matters?
wolf
wolf
Ambient + Shadow * (Diffuse + Specular)

Topic Locked

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

Sign in to reply to this topic.