Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove manual interpolation of local space in transform shaders. #2069

Merged
merged 2 commits into from Nov 22, 2017

Commits on Nov 21, 2017

  1. Remove manual interpolation of local space in transform shaders.

    Instead, for vertex transform shaders we now write out:
     (world.xy, z * world.w, world.w)
    
    This gives us constant Z across the polygon for draw ordering.
    
    It also means we can use the hardware interpolators instead of
    manually dividing by Z in the fragment shader for local_pos.
    
    This is mostly preparation work for switching shaders over to
    be brush primitives, but has the happy side effect of:
    
     * Fixing a small number of Gecko + Servo reftests.
     * Simpler and faster code.
    gw3583 committed Nov 21, 2017
  2. Address review comments

    gw3583 committed Nov 21, 2017
You can’t perform that action at this time.