Add bio type light.

This commit is contained in:
jmsgrogan 2017-10-24 12:58:25 +01:00
parent 29f788385d
commit b74feeb77c
11 changed files with 72 additions and 56 deletions

View file

@ -22,15 +22,17 @@ def generate(shape,
product_gen.generate_lamp.optimize_for_render(models)
# Set up materials and textures
colormap = {"shade": color,
"base": (132.0/255.0, 64.0/255.0, 11.0/255.0),
"chord": (5.0/255.0, 5.0/255.0, 5.0/255.0)}
if "bio" not in shape:
colormap = {"shade": color,
"base": (132.0/255.0, 64.0/255.0, 11.0/255.0),
"chord": (5.0/255.0, 5.0/255.0, 5.0/255.0)}
else:
colormap = {"shade": color}
product_gen.generate_lamp.apply_textures(colormap, models)
rendering.setup_scene.setup_scene()
# Do rendering
prefix = os.getcwd() + "/" + output_prefix + "/" + output_prefix
if is_final: