SHADERed icon indicating copy to clipboard operation
SHADERed copied to clipboard

UI for function value "MatrixPerspectiveFovLH" not working

Open ariaci opened this issue 11 months ago • 0 comments

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

  1. Field of view should be 39°
  2. Open "Value Edit"
  3. Select Function MatrixPerspectiveFovLH
  4. You should see the bug - instead of 90° you should see an extremely large value (5157 = 90/PI*180)
  5. Now move slider to 39 and close "Value Edit"
  6. After opening "Value Edit" again you should see 2235 = 39/PI*180

ariaci avatar Feb 14 '25 10:02 ariaci