mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:37:34 +00:00
LibGL+LibSoftGPU: Calculate spotlight cutoff angle as degrees
We were storing the radians but never using that value in the GPU. We now directly use the degrees value.
This commit is contained in:
parent
8c28d167c9
commit
9d4c2f6308
3 changed files with 1 additions and 6 deletions
|
@ -28,8 +28,6 @@ struct Light {
|
|||
float constant_attenuation { 1.0f }; // This is referred to `k0i` in the OpenGL spec
|
||||
float linear_attenuation { 0.0f }; // This is referred to `k1i` in the OpenGL spec
|
||||
float quadratic_attenuation { 0.0f }; // This is referred to `k2i` in the OpenGL spec
|
||||
|
||||
float spotlight_cutoff_angle_rads { AK::Pi<float> / 180.0f };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue