mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
fixed uv missing in vertex shader of canvas.
This commit is contained in:
parent
c7cef29b00
commit
7c55228f5c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user