aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lightmapviewer/mesh.frag
blob: cc2b454404be0f3b9113dcbdf09a1d6b64d99a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

VARYING vec2 texcoord;

void MAIN() {
    if (debugUV) {
        FRAGCOLOR = vec4(texcoord.x, texcoord.y, 0.0, 1.0);
    } else {
        vec4 texel = texture(baseMap, texcoord);
        FRAGCOLOR = vec4(texel.rgb, 1.0);
    }
}