glsl_struct_field(glsl_type::vec4_type, "position"),
glsl_struct_field(glsl_type::vec4_type, "halfVector"),
glsl_struct_field(glsl_type::vec3_type, "spotDirection"),
- glsl_struct_field(glsl_type::float_type, "spotExponent"),
- glsl_struct_field(glsl_type::float_type, "spotCutoff"),
glsl_struct_field(glsl_type::float_type, "spotCosCutoff"),
glsl_struct_field(glsl_type::float_type, "constantAttenuation"),
glsl_struct_field(glsl_type::float_type, "linearAttenuation"),
glsl_struct_field(glsl_type::float_type, "quadraticAttenuation"),
+ glsl_struct_field(glsl_type::float_type, "spotExponent"),
+ glsl_struct_field(glsl_type::float_type, "spotCutoff"),
};
static const struct glsl_struct_field gl_LightModelParameters_fields[] = {
SWIZZLE_Y,
SWIZZLE_Z,
SWIZZLE_Z)},
- {"spotExponent", {STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_WWWW},
- {"spotCutoff", {STATE_LIGHT, 0, STATE_SPOT_CUTOFF}, SWIZZLE_XXXX},
{"spotCosCutoff", {STATE_LIGHT, 0, STATE_SPOT_DIRECTION}, SWIZZLE_WWWW},
{"constantAttenuation", {STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_XXXX},
{"linearAttenuation", {STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_YYYY},
{"quadraticAttenuation", {STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_ZZZZ},
+ {"spotExponent", {STATE_LIGHT, 0, STATE_ATTENUATION}, SWIZZLE_WWWW},
+ {"spotCutoff", {STATE_LIGHT, 0, STATE_SPOT_CUTOFF}, SWIZZLE_XXXX},
};
static const struct gl_builtin_uniform_element gl_LightModel_elements[] = {