]> git.tdb.fi Git - libs/gl.git/blobdiff - blender/io_mspgl/material.py
Detect and export alpha cutoff in Blender
[libs/gl.git] / blender / io_mspgl / material.py
index 633f030f2ede62bc82c487ec8eb454e2e85b98b4..fc30d3399c94e77ec562c40fb810f017db005bc8 100644 (file)
@@ -222,6 +222,7 @@ class Material:
                self.receive_shadows = material.receive_shadows
                self.cast_shadows = (material.shadow_method!='NONE')
                self.blend_type = 'ALPHA' if material.blend_method=='BLEND' else 'NONE'
+               self.alpha_cutoff = material.alpha_threshold if material.blend_method=='CLIP' else 0.0
                self.image_based_lighting = material.image_based_lighting
 
                if self.render_mode=='EXTERNAL' and not self.technique: