+ if material.shadow_method!='NONE':
+ st = Statement("pass", "shadow")
+ if material.render_mode=='CUSTOM':
+ shader = material.shadow_shader or material.shader
+ if shader.endswith(".glsl"):
+ shader += ".shader"
+ st.sub.append(Statement("shader", shader))
+ else:
+ st.sub.append(Statement("shader", "_occluder.glsl.shader"))
+ tech_res.statements.append(st)
+