Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <william@reynish.com>2009-07-25 16:22:22 +0400
committerWilliam Reynish <william@reynish.com>2009-07-25 16:22:22 +0400
commita13341bed1ad905c41e0f1a1991dee959b09b63a (patch)
tree9d14287a1e40222291ae28a5fcfee7a29b2887e2 /release
parent5815cfd53b7ffcbcf123dfc3f99ed5b64dce0b6a (diff)
Added Ztransp (renamed Z Buffer) option in rna and layout. Also added diffuse and color ramps, although a bug in the RNA prevents these from working unless you load an old file with them already enabled.
Diffstat (limited to 'release')
-rw-r--r--release/ui/buttons_material.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/release/ui/buttons_material.py b/release/ui/buttons_material.py
index ceb492b198e..c6678d64c6e 100644
--- a/release/ui/buttons_material.py
+++ b/release/ui/buttons_material.py
@@ -74,37 +74,36 @@ class MATERIAL_PT_material(MaterialButtonsPanel):
if mat:
layout.itemR(mat, "type", expand=True)
-
-
-
-# row = layout.row()
if mat.type == 'SURFACE':
split = layout.split()
sub = split.column()
+ sub.itemR(mat, "z_buffer")
sub.itemR(mat, "alpha", slider=True)
sub.itemR(mat, "ambient", slider=True)
sub.itemR(mat, "emit")
- sub.itemR(mat, "translucency", slider=True)
sub = split.column()
sub.itemR(mat, "shadeless")
sub.itemR(mat, "wireframe")
+
sub.itemR(mat, "tangent_shading")
sub.itemR(mat, "cubic", slider=True)
+
elif mat.type == 'VOLUME':
split = layout.split()
sub = split.column()
+ sub.itemR(mat, "z_buffer")
sub.itemR(mat, "alpha", slider=True)
sub.itemR(mat, "ambient", slider=True)
sub.itemR(mat, "emit")
- sub.itemR(mat, "translucency", slider=True)
sub = split.column()
sub.itemR(mat, "shadeless")
sub.itemR(mat, "wireframe")
+
sub.itemR(mat, "tangent_shading")
sub.itemR(mat, "cubic", slider=True)
elif mat.type == 'HALO':
@@ -218,10 +217,9 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel):
sub = split.column()
sub.active = mat.shadeless== False
sub.itemR(mat, "diffuse_reflection", text="Intensity", slider=True)
+ sub.itemR(mat, "translucency", slider=True)
sub.itemR(mat, "object_color")
-
-
row = layout.row()
row.active = mat.shadeless== False
row.itemR(mat, "diffuse_shader", text="Shader")
@@ -242,8 +240,9 @@ class MATERIAL_PT_diffuse(MaterialButtonsPanel):
sub = split.column()
sub.itemR(mat, "diffuse_fresnel_factor", text="Factor")
- layout.itemR(mat, "diffuse_ramp", text="Ramp")
-
+ layout.template_color_ramp(mat.diffuse_ramp, expand=True)
+
+
class MATERIAL_PT_specular(MaterialButtonsPanel):
__idname__= "MATERIAL_PT_specular"
__label__ = "Specular"
@@ -283,8 +282,9 @@ class MATERIAL_PT_specular(MaterialButtonsPanel):
sub = split.column()
sub.itemR(mat, "specular_toon_smooth", text="Smooth")
- layout.itemR(mat, "specular_ramp", text="Ramp")
-
+ layout.template_color_ramp(mat.specular_ramp, expand=True)
+
+
class MATERIAL_PT_sss(MaterialButtonsPanel):
__idname__= "MATERIAL_PT_sss"
__label__ = "Subsurface Scattering"