An image texture without picture returned a '0', causing the texture code
to generate a bump normal that warped the entire shading around.
In bugreport it was showing terminator issues with ray shadow.

Terminator problems can still occor with more extreme bumpmaps though,
something to look at further.
This commit is contained in:
Ton Roosendaal 2005-11-29 23:09:36 +00:00
parent 04387f403f
commit a381cb2fca

@ -83,7 +83,8 @@ int imagewrap(Tex *tex, Image *ima, float *texvec, TexResult *texres)
texres->tin= texres->ta= texres->tr= texres->tg= texres->tb= 0.0;
if(ima==NULL || ima->ok== 0) {
return 0;
if(texres->nor) return 3;
else return 1;
}
if(ima->ibuf==NULL) {
@ -593,7 +594,8 @@ int imagewraposa(Tex *tex, Image *ima, float *texvec, float *dxt, float *dyt, Te
texres->tin= texres->ta= texres->tr= texres->tg= texres->tb= 0.0;
if(ima==NULL || ima->ok== 0) {
return 0;
if(texres->nor) return 3;
else return 1;
}
if(ima->ibuf==NULL) {