The gl_shader_asset object has facilities to compile variants based on included defines. A function needs to be written to analyze the currently used texture handles on a material and ensure its variant is compiled appropriately. Current materials simply define all potential shader defines, but this is actually a bug since not all materials will use all the define-available texture slots.
The
gl_shader_asset
object has facilities to compile variants based on included defines. A function needs to be written to analyze the currently used texture handles on a material and ensure its variant is compiled appropriately. Current materials simply define all potential shader defines, but this is actually a bug since not all materials will use all the define-available texture slots.