Skip to content
  • Jonas Ådahl's avatar
    shaped-texture: Transform clip and opaque region to texture space · ff08e19f
    Jonas Ådahl authored
    The clip and opaque region are both in a translated stage coordinate
    space, where the origin is in the top left corner of the painted
    texture. The painting, however, is in the texture coordinate space,
    so when the texture is scaled, the coordinate spaces differ.
    
    Handle this by transforming the clip and opaque region to texture
    coordinate space before computing the blend region and the opaque region
    to paint.
    
    Closes: #300
    ff08e19f