CatDogEngine icon indicating copy to clipboard operation
CatDogEngine copied to clipboard

[Component] Refact material component

Open T-rvw opened this issue 2 years ago • 2 comments

  1. Present different instanced data from material type.
  2. No need to write something like SkyType inside MaterialComponent, it is a generic class.

T-rvw avatar Aug 06 '23 12:08 T-rvw

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?

roeas avatar Aug 08 '23 08:08 roeas

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.

image

https://dev.epicgames.com/community/learning/tutorials/6GjP/unreal-engine-ui-useful-materials

T-rvw avatar Aug 11 '23 14:08 T-rvw