SlipperyBrick Posted April 3, 2016 Posted April 3, 2016 I am just wondering out of curiosity, how does Leadwerks calculate lighting with static models? Does it use the models UV set to calculate lighting? Quote
nick.ace Posted April 3, 2016 Posted April 3, 2016 No, it's a deferred renderer, so it does a few things: It calculates the depth, normal, and color of the final fragments in the scene and places them in buffers (basically renders each of those into an image). A lighting shader is then used to calculate the lighting. This operates on each fragment. You can think of the lighting shader as a post-processing effect to some extent. A fragment consists of primarily: depth value, normal vector, and color value. It does not contain the UV. And this is the same regardless of whether a model is static or animated. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.