forked from bartvdbraak/blender
- Made dispfact for new mtex default to 0.2.
- Fine tunes scaleing of Nor channel to better match intensity chan. - removed last debug printf.
This commit is contained in:
parent
60a5328d4b
commit
ede644969b
@ -409,6 +409,7 @@ void default_mtex(MTex *mtex)
|
||||
mtex->colfac= 1.0;
|
||||
mtex->norfac= 0.5;
|
||||
mtex->varfac= 1.0;
|
||||
mtex->dispfac=0.2;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1219,9 +1219,9 @@ void do_material_tex(ShadeInput *shi)
|
||||
if(mtex->maptoneg & MAP_DISPLACE) tex->norfac= -mtex->norfac;
|
||||
else tex->norfac= mtex->norfac;
|
||||
|
||||
shi->displace[0]+= 0.1f*Tnor*tex->norfac*tex->nor[0];
|
||||
shi->displace[1]+= 0.1f*Tnor*tex->norfac*tex->nor[1];
|
||||
shi->displace[2]+= 0.1f*Tnor*tex->norfac*tex->nor[2];
|
||||
shi->displace[0]+= 0.2f*Tnor*tex->norfac*tex->nor[0];
|
||||
shi->displace[1]+= 0.2f*Tnor*tex->norfac*tex->nor[1];
|
||||
shi->displace[2]+= 0.2f*Tnor*tex->norfac*tex->nor[2];
|
||||
}
|
||||
|
||||
if(rgbnor & TEX_RGB) {
|
||||
|
@ -3041,8 +3041,6 @@ void do_displacement(Object *ob, int startface, int numface, int startvert, int
|
||||
obt=obt->parent;
|
||||
}
|
||||
|
||||
printf("ob scale=%f, %f, %f\n", scale[0], scale[1], scale[2]);
|
||||
|
||||
/* Clear all flags */
|
||||
for(i=startvert; i<startvert+numvert; i++){
|
||||
vr= RE_findOrAddVert(i);
|
||||
|
Loading…
Reference in New Issue
Block a user