|
|
@ -787,7 +787,6 @@ struct Regs {
|
|
|
|
LightColor diffuse; // material.diffuse * light.diffuse
|
|
|
|
LightColor diffuse; // material.diffuse * light.diffuse
|
|
|
|
LightColor ambient; // material.ambient * light.ambient
|
|
|
|
LightColor ambient; // material.ambient * light.ambient
|
|
|
|
|
|
|
|
|
|
|
|
struct {
|
|
|
|
|
|
|
|
// Encoded as 16-bit floating point
|
|
|
|
// Encoded as 16-bit floating point
|
|
|
|
union {
|
|
|
|
union {
|
|
|
|
BitField< 0, 16, u32> x;
|
|
|
|
BitField< 0, 16, u32> x;
|
|
|
@ -802,8 +801,7 @@ struct Regs {
|
|
|
|
union {
|
|
|
|
union {
|
|
|
|
BitField<0, 1, u32> directional;
|
|
|
|
BitField<0, 1, u32> directional;
|
|
|
|
BitField<1, 1, u32> two_sided_diffuse; // When disabled, clamp dot-product to 0
|
|
|
|
BitField<1, 1, u32> two_sided_diffuse; // When disabled, clamp dot-product to 0
|
|
|
|
};
|
|
|
|
} config;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BitField<0, 20, u32> dist_atten_bias;
|
|
|
|
BitField<0, 20, u32> dist_atten_bias;
|
|
|
|
BitField<0, 20, u32> dist_atten_scale;
|
|
|
|
BitField<0, 20, u32> dist_atten_scale;
|
|
|
|