Bugfix: render instancing didn't work correct with layer ipo's,

each instance should have it's own layer.
This commit is contained in:
2008-03-11 12:29:59 +00:00
parent 51a8a60d96
commit 7f6889a63b
8 changed files with 25 additions and 24 deletions

View File

@@ -273,7 +273,7 @@ typedef struct ObjectInstanceRen {
ObjectRen *obr;
Object *ob, *par;
int index, psysindex;
int index, psysindex, lay;
float mat[4][4], imat[3][3];
short flag;

View File

@@ -99,7 +99,7 @@ struct HaloRen *RE_inithalo_particle(struct Render *re, struct ObjectRen *obr, s
struct StrandBuffer *RE_addStrandBuffer(struct ObjectRen *obr, int totvert);
struct ObjectRen *RE_addRenderObject(struct Render *re, struct Object *ob, struct Object *par, int index, int psysindex, int lay);
struct ObjectInstanceRen *RE_addRenderInstance(struct Render *re, struct ObjectRen *obr, struct Object *ob, struct Object *par, int index, int psysindex, float mat[][4]);
struct ObjectInstanceRen *RE_addRenderInstance(struct Render *re, struct ObjectRen *obr, struct Object *ob, struct Object *par, int index, int psysindex, float mat[][4], int lay);
void RE_makeRenderInstances(struct Render *re);
void RE_instanceTransformNormal(struct ObjectInstanceRen *obi, float *nor, float *tnor);