CatDogEngine
CatDogEngine copied to clipboard
[Component] Refact material component
- Present different instanced data from material type.
- No need to write something like SkyType inside MaterialComponent, it is a generic class.
If the material determines the way the model is lighted by the environment (IBL/ATM) and the uber shader used, does it make sense to write SkyType here?
If the material determines the way the model is lighted by the environment (IBL/ATM) and the uber shader used, does it make sense to write SkyType here?
Not every material needs to be lighted by environment. And some materials even don't need lighting. For example, we often use an unlit material for ingame UI.
https://dev.epicgames.com/community/learning/tutorials/6GjP/unreal-engine-ui-useful-materials