SHADERed
SHADERed copied to clipboard
UI for function value "MatrixPerspectiveFovLH" not working
Description
MatrixPerspectiveFovLH expects the field of view to be specified in radians. In the SHADERed Value Edit UI, this value is displayed in degrees. Currently, the UI incorrectly converts these radians twice into degrees, resulting in an incorrect field of view.
Example
- Field of view should be 39°
- Open "Value Edit"
- Select Function
MatrixPerspectiveFovLH - You should see the bug - instead of 90° you should see an extremely large value (5157 = 90/PI*180)
- Now move slider to 39 and close "Value Edit"
- After opening "Value Edit" again you should see 2235 = 39/PI*180