Changeset View
Changeset View
Standalone View
Standalone View
src/scenegraph/shadowedrectangle.vert
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: LGPL-2.0-or-later | ||||
5 | */ | ||||
6 | | ||||
7 | uniform highp mat4 matrix; | ||||
8 | uniform lowp vec2 aspect; | ||||
9 | uniform lowp vec2 offset; | ||||
10 | | ||||
11 | attribute highp vec4 in_vertex; | ||||
12 | attribute mediump vec2 in_uv; | ||||
13 | | ||||
14 | varying mediump vec2 uv; | ||||
15 | | ||||
16 | void main() { | ||||
17 | uv = (-1.0 + 2.0 * in_uv) * aspect; | ||||
18 | gl_Position = matrix * in_vertex; | ||||
19 | } |