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>2004-01-07 23:29:21 +0300
committerTon Roosendaal <ton@blender.org>2004-01-07 23:29:21 +0300
commitf2f514d1d432c8c3fd018f2b55ceb2555fbdf686 (patch)
tree378ee2ad880e944a331611bf009cc868f81f4c84 /source/blender/render/extern
parent7aeb986faf5f8b65c9f3ad2fbfa2669668080526 (diff)
Fix for cube map error subsurf.
- cubemap relied on pointer to MFace, which is only available for Mesh when directly converted to renderfaces. It then checked the 'puno' flag where also bits were set to indicate the optimal projection for a face (XY, XZ or YZ). - I found out the renderface also has a puno flag, so the mface pointer in a renderface is redundant. Is removed now - added code in texture cubemap call, which checks on a projection flag in 'puno'. If not set, it uses the orco's to calculate one. - this means, that cubemap now also works for other objects than meshes, provided they have an orco block while render. - if no orco block available, it uses the 'global' projection to find which of the cube sides map. I couldnt find other errors with subsurf & orco though...
Diffstat (limited to 'source/blender/render/extern')
-rw-r--r--source/blender/render/extern/include/render_types.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/blender/render/extern/include/render_types.h b/source/blender/render/extern/include/render_types.h
index 98a8af9211c..6259d98162b 100644
--- a/source/blender/render/extern/include/render_types.h
+++ b/source/blender/render/extern/include/render_types.h
@@ -171,7 +171,6 @@ struct halosort {
/* ------------------------------------------------------------------------- */
struct Material;
-struct MFace;
struct TFace;
typedef struct RadFace {
@@ -185,7 +184,6 @@ typedef struct VlakRen
struct VertRen *v1, *v2, *v3, *v4;
float n[3], len;
struct Material *mat;
- struct MFace *mface;
struct TFace *tface;
unsigned int *vcol;
char snproj, puno;