예제 #1
0
파일: assets.py 프로젝트: zorrock/taichi
 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
예제 #2
0
 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
예제 #3
0
 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
예제 #4
0
파일: assets.py 프로젝트: zorrock/taichi
 def get_material_snow_nosss(self):
     material = tc.create_surface_material('diffuse')
     material.initialize(P(diffuse=(1, 1, 1)))
     return material