Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309700 Low graphic rendering performance in metal pipeline
  3. JDK-8356601

Separate phong shader functions based on number of lights

XMLWordPrintable

      Currently we have single Phong vertex and fragment shader, which handle maximum 3 lights.
      In scenarios when there is only one light, The shader ends up in causing more processing during rasterization when interpolating attributes that are passed from vertex shader to fragment shader.
      Due to limitation of MSL, there cannot be an array of any type in the set of attributes that are passed from vertex to fragment shader.
      Hence, the alternative is to have separate shaders based on number of lights.

            arapte Ambarish Rapte
            arapte Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: