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-12-09 18:14:32 +0300
committerTon Roosendaal <ton@blender.org>2005-12-09 18:14:32 +0300
commit485dd1d37673d229db9062d8cad98e624d79c8ec (patch)
tree4594dc9f61d65286c430a304ba11742f1acea818 /source/blender/makesdna/DNA_material_types.h
parentc492729b3a0d52ae01ee67e5ad92bdb02f6585df (diff)
Orange; WIP commit for inclusion of "Tangent" vector in rendering.
This first implementation only supports it for Meshes with UV maps, and only tangents in V direction. Tangent diffuse: http://www.blender.org/bf/0001_0080.avi Tangent spec, diffuse, and bump: http://www.blender.org/bf/20001_0080.avi NOTE: since UV coordinates are still very badly subsurfed, this won't work well for subsurf meshes... on the todo. On the todo; - generate tangents for meshes without UV (with some options) - use tangents from Curve/Surface - add the Ashkimin shader from tracker ----- Important bugfix; curves didn't render anymore since yesterday. :)
Diffstat (limited to 'source/blender/makesdna/DNA_material_types.h')
-rw-r--r--source/blender/makesdna/DNA_material_types.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/makesdna/DNA_material_types.h b/source/blender/makesdna/DNA_material_types.h
index ff2eb7194eb..9991148ad3d 100644
--- a/source/blender/makesdna/DNA_material_types.h
+++ b/source/blender/makesdna/DNA_material_types.h
@@ -169,6 +169,8 @@ typedef struct Material {
#define MA_FULL_OSA 0x800000
#define MA_TANGENT_STR 0x1000000
#define MA_SHADBUF 0x2000000
+ /* note; we drop MA_TANGENT_STR later to become tangent_u */
+#define MA_TANGENT_V 0x4000000
/* diff_shader */
#define MA_DIFF_LAMBERT 0
@@ -217,9 +219,8 @@ typedef struct Material {
#define TEXCO_OSA 512
#define TEXCO_WINDOW 1024
#define NEED_UV 2048
- /* optim = use simpler AA */
-#define TEXCO_OPTIM 4096
- /* stored in vertex->accum, 1 D */
+#define TEXCO_TANGENT 4096
+ /* still stored in vertex->accum, 1 D */
#define TEXCO_STRAND 8192
#define TEXCO_STRESS 16384