| version 1.80 | version 1.81 |
|---|
| |
| /* | /* |
| * shade.c - This file contains the functions that perform surface shading. | * shade.c - This file contains the functions that perform surface shading. |
| * | * |
| * $Id: shade.c,v 1.80 2003/06/06 19:35:02 johns Exp $ | * $Id: shade.c,v 1.81 2004/02/03 03:38:22 johns Exp $ |
| */ | */ |
| | |
| #include "machine.h" | #include "machine.h" |
| |
| return col; | return col; |
| } | } |
| | |
| if (obj->tex->islight) { /* if the current object is a light, then we */ | if (obj->tex->flags & RT_TEXTURE_ISLIGHT) { |
| | /* if the current object is a light, then we */ |
| return obj->tex->col; /* will only use the objects ambient color */ | return obj->tex->col; /* will only use the objects ambient color */ |
| } | } |
| | |
| |
| return col; | return col; |
| } | } |
| | |
| if (obj->tex->islight) { /* if the current object is a light, then we */ | if (obj->tex->flags & RT_TEXTURE_ISLIGHT) { |
| | /* if the current object is a light, then we */ |
| return obj->tex->col; /* will only use the objects ambient color */ | return obj->tex->col; /* will only use the objects ambient color */ |
| } | } |
| | |