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:
authorTon Roosendaal <ton@blender.org>2005-04-17 21:43:07 +0400
committerTon Roosendaal <ton@blender.org>2005-04-17 21:43:07 +0400
commit425f2956043fb9da71bfa34086d923cda4b0e9c2 (patch)
tree53cffefa01792e7a28f3019308bc511589063d12 /source/blender/makesdna/DNA_material_types.h
parent8a02dc11decda40e67bf95a109645e8df4d80b7e (diff)
Patch submitted by Jorge Bernal (lordloki) and Jonathan Merritt.
This will add Minneart diffuse and WardIso specular to our shader menu. Minneart gives nice control over darkness/brightness areas, the wardIso over 'plastic' style sharp or fuzzy specular. Webpage is being made with nice samples. Will be in release log. Jorge: one change is in the do_versions, you inserted it on wrong location.
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r--source/blender/makesdna/DNA_material_types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index d241c1e1c36..c60fa32db09 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -83,6 +83,8 @@ typedef struct Material {
short diff_shader, spec_shader;
float roughness, refrac;
float param[4]; /* size, smooth, size, smooth, for toonshader */
+ float rms;
+ float darkness;
short texco, mapto;
/* ramp colors */
@@ -152,12 +154,14 @@ typedef struct Material {
#define MA_DIFF_LAMBERT 0
#define MA_DIFF_ORENNAYAR 1
#define MA_DIFF_TOON 2
+#define MA_DIFF_MINNAERT 3
/* spec_shader */
#define MA_SPEC_COOKTORR 0
#define MA_SPEC_PHONG 1
#define MA_SPEC_BLINN 2
#define MA_SPEC_TOON 3
+#define MA_SPEC_WARDISO 4
/* dynamode */
#define MA_DRAW_DYNABUTS 1