Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8088251

Point and Spot lights are not affected by coordinate scaling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 7u6
    • javafx

      The Lighting effect allows the developer to specify lighting sources with coordinates of where the light is coming from. Unfortunately, the coordinates are not adjusted for the coordinate transform of a node and are actually relative to its bounding box, which makes positioning the lights properly for an arbitrary node very tricky.

      This bug also manifests readily when we render on a retina display where all nodes are rendered with an implicit 2x scale.

      Two test programs are attached. The "Scaled" version should look like a double-sized version of the regular test case, but the light is displaced in the scaled version.

            Unassigned Unassigned
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported: