And finally I got my spot light shader to work. The problem I actually had was that I didn't realize that the cos function in HLSL needed a radian instead of degrees, grrrr. It now looks as it should, finnaly got this damn light equations out of the way.
No comments:
Post a Comment