DescriptionTexturing support for RECTANGLE textures.
Uses textureSize() to unnormalize texture coords when reading from a RECTANGLE texture. Because of this we also require a later GLSL version to use rectangle textures (1.40).
Note that this causes a issue with the bicubic effect. The texture coords seem to have poor precision and the result is ugly. textureSize() is intended as a workaround until effects can be updated to handle unnormalized coords themselves.
Updates places where we were looking for OpenGL version 3.2 for rectangle support. It was actually added in 3.1.
BUG=skia:3868
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1594483003
Committed: https://skia.googlesource.com/skia/+/e179a9167f71dfc41668b05d40082aae76367fa6
Patch Set 1 #Patch Set 2 : more #Patch Set 3 : update #Patch Set 4 : Working #Patch Set 5 : update #Patch Set 6 : more #Patch Set 7 : fix linewrap #Patch Set 8 : set correct gm size #Patch Set 9 : update comment #
Total comments: 10
Patch Set 10 : Address comments #Patch Set 11 : fix double->float warnings on windows #Patch Set 12 : fix float->int warnings #
Messages
Total messages: 22 (13 generated)
|