blob: 12e384c16677afdee7f30dd4e37ec8ec8c79b9bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
VARYING vec2 center_vec;
void MAIN()
{
center_vec = INPUT_UV - center;
// Multiply by x/y ratio to make the distortion round instead of an ellipse
center_vec.y *= INPUT_SIZE.y / INPUT_SIZE.x;
}
|