Skip to content

UI for function value "MatrixPerspectiveFovLH" not working #335

@ariaci

Description

@ariaci

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions