+ def get_occluder_shader_variant(self, material, thsm):
+ variant = ""
+ if thsm:
+ variant += "_thsm"
+
+ spec_values = {}
+
+ color_prop = material.properties[0]
+ if material.cast_shadows and material.alpha_cutoff>0.0:
+ spec_values["use_alpha_cutoff"] = True
+ variant += "_masked"
+ if material.instancing:
+ spec_values["use_instancing"] = True
+ variant += "_instanced"
+
+ return (variant, spec_values)
+