Add bio type light.
This commit is contained in:
parent
29f788385d
commit
b74feeb77c
11 changed files with 72 additions and 56 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue