meta4d-me / CatDogEngine

A cross-platform game engine/editor written in modern C++ (WIP)
GNU General Public License v2.0
161 stars 17 forks source link

Shader Feature Set #378

Closed roeas closed 1 year ago

roeas commented 1 year ago

Usage:

shaderSchema.AddFeatureSet({ ShaderFeature::ALBEDO_MAP });
shaderSchema.AddFeatureSet({ ShaderFeature::IBL, ShaderFeature::ATM });
shaderSchema.Build();

Will generate uber shader ALBEDOMAP, IBL, ATM, ALBEDOMAP_IBL and ALBEDOMAP_ATM. Wont generate ALBEDOMAP_IBL_ATM and IBL_ATM.