def get_material_snow(self): material = tc.create_surface_material('plain_interface') material.initialize(P()) vol = tc.create_volume_material("homogeneous") vol.initialize(P(scattering=30, absorption=0)) material.set_internal_material(vol) return material
def get_material_dark_grey(self): material = tc.create_surface_material('pbr') material.initialize( P(diffuse=(0.3, 0.3, 0.3), specular=(0.0, 0.0, 0.0), glossiness=-1, transparent=False)) return material
def get_material_glass(self): material = tc.create_surface_material('pbr') material.initialize( P(diffuse=(0, 0, 0), specular=(0.0, 0.0, 0.0), glossiness=-1, transparent=True, ior=1.5)) return material
def get_material_snow_nosss(self): material = tc.create_surface_material('diffuse') material.initialize(P(diffuse=(1, 1, 1))) return material