add a material parameter to control shadow far attenuation

FIXES=[436680157]
This commit is contained in:
Mathias Agopian
2025-08-13 20:22:45 -07:00
committed by Mathias Agopian
parent 45f68909d7
commit bbf0754183
9 changed files with 41 additions and 0 deletions
@@ -252,6 +252,8 @@ utils::io::sstream& CodeGenerator::generateCommonProlog(utils::io::sstream& out,
if (stage == ShaderStage::FRAGMENT) {
CodeGenerator::generateDefine(out, "FILAMENT_LINEAR_FOG",
material.linearFog);
CodeGenerator:generateDefine(out, "FILAMENT_SHADOW_FAR_ATTENUATION",
material.shadowFarAttenuation);
CodeGenerator::generateDefine(out, "MATERIAL_HAS_CUSTOM_DEPTH",
material.userMaterialHasCustomDepth);
}