LibSoftGPU: Change Material vectors to FloatVector4

Same type, but more consistent with the rest of LibSoftGPU and LibGL.
This commit is contained in:
Jelle Raaijmakers 2022-01-13 02:57:27 +01:00 committed by Andreas Kling
parent db1509c0de
commit 58e025ac08
Notes: sideshowbarker 2024-07-17 20:59:59 +09:00

View file

@ -11,10 +11,10 @@
namespace SoftGPU {
struct Material {
Vector4<float> ambient { 0.2f, 0.2f, 0.2f, 1.0f };
Vector4<float> diffuse { 0.8f, 0.8f, 0.8f, 1.0f };
Vector4<float> specular { 0.0f, 0.0f, 0.0f, 1.0f };
Vector4<float> emissive { 0.0f, 0.0f, 0.0f, 1.0f };
FloatVector4 ambient { 0.2f, 0.2f, 0.2f, 1.0f };
FloatVector4 diffuse { 0.8f, 0.8f, 0.8f, 1.0f };
FloatVector4 specular { 0.0f, 0.0f, 0.0f, 1.0f };
FloatVector4 emissive { 0.0f, 0.0f, 0.0f, 1.0f };
float shininess { 0.0f };
float specular_exponent { 0.0f };
float ambient_color_index { 0.0f };