Issue #38 resolved

Should shadow-casting for lights be a property of each light, or a separate Component?

Michael Ludwig
repo owner created an issue

If it's a property of each light, it keeps the data description more concise, and you won't have to pull in auxiliary components to access that information.

However, it also means that every light that theoretically could support shadow-mapping needs to define its own boolean.

By having a Component, you can be more flexible in the allowed data description, and then controllers can handle the different cases as necessary. I'm not sure which one I like more yet.

Comments (1)

  1. Michael Ludwig reporter

    It is a boolean property, there is a cost associated with checking for components. It also is not clear then if ShadowCaster could be used for a renderable that casts shadows as well.

  2. Log in to comment