LEFT | RIGHT |
1 /* | 1 /* |
2 * ***** BEGIN GPL LICENSE BLOCK ***** | 2 * ***** BEGIN GPL LICENSE BLOCK ***** |
3 * | 3 * |
4 * This program is free software; you can redistribute it and/or | 4 * This program is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU General Public License | 5 * modify it under the terms of the GNU General Public License |
6 * as published by the Free Software Foundation; either version 2 | 6 * as published by the Free Software Foundation; either version 2 |
7 * of the License, or (at your option) any later version.· | 7 * of the License, or (at your option) any later version.· |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 } | 351 } |
352 | 352 |
353 int GPU_material_bound(GPUMaterial *material) | 353 int GPU_material_bound(GPUMaterial *material) |
354 { | 354 { |
355 return material->bound; | 355 return material->bound; |
356 } | 356 } |
357 | 357 |
358 material->alpha= 1; | 358 material->alpha= 1; |
359 } | 359 } |
360 | 360 |
361 GPUBlendMode GPU_material_blend_mode(GPUMaterial *material, float obcol[3]) | 361 GPUBlendMode GPU_material_blend_mode(GPUMaterial *material, float obcol[4]) |
362 { | 362 { |
363 if(material->alpha || (material->obcolalpha && obcol[3] < 1.0f)) | 363 if(material->alpha || (material->obcolalpha && obcol[3] < 1.0f)) |
364 return GPU_BLEND_ALPHA; | 364 return GPU_BLEND_ALPHA; |
LEFT | RIGHT |