Merge pull request #24312 from QbieShay/fix_uv_vert

fixed uv missing in vertex shader of canvas.
This commit is contained in:
Rémi Verschelde 2018-12-13 10:41:32 +01:00 committed by GitHub
commit 199c294d4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -145,6 +145,8 @@ void main() {
#define extra_matrix extra_matrix_instance
//for compatibility with the fragment shader we need to use uv here
vec2 uv = uv_interp;
{
/* clang-format off */
@ -153,6 +155,8 @@ VERTEX_SHADER_CODE
/* clang-format on */
}
uv_interp = uv;
#ifdef USE_NINEPATCH
pixel_size_interp = abs(dst_rect.zw) * vertex;