forked from enlightenment/efl
gl_common/evas_gl_3d: Assign attenuation values correctly.
This really looks like a copy and paste error to me. The assigned const and linear value would always be overridden by quad. CID: 1267462, 1267460
This commit is contained in:
parent
92b7d1fffa
commit
423b97e572
|
@ -959,8 +959,8 @@ _light_build(E3D_Draw_Data *data,
|
|||
data->flags |= E3D_SHADER_FLAG_LIGHT_ATTENUATION;
|
||||
|
||||
data->light.atten.x = pdl->atten_const;
|
||||
data->light.atten.x = pdl->atten_linear;
|
||||
data->light.atten.x = pdl->atten_quad;
|
||||
data->light.atten.y = pdl->atten_linear;
|
||||
data->light.atten.z = pdl->atten_quad;
|
||||
}
|
||||
|
||||
if (pdl->spot_cutoff < 180.0)
|
||||
|
|
Loading…
Reference in New Issue