mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-26 15:58:59 +02:00
fix 2
This commit is contained in:
parent
f23caf03dc
commit
2c90fb00a5
2 changed files with 5 additions and 4 deletions
|
|
@ -217,3 +217,4 @@ add_custom_target(host_shaders
|
||||||
SOURCES
|
SOURCES
|
||||||
${SHADER_SOURCES}
|
${SHADER_SOURCES}
|
||||||
)
|
)
|
||||||
|
#add_dependencies(host_shaders snapdragon_gsr::snapdragon_gsr)
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
#version 450
|
#version 450
|
||||||
|
|
||||||
layout(location = 0) out vec2 texcoord;
|
layout(location = 0) out highp vec4 texcoord;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
float x = float((gl_VertexIndex & 1) << 2);
|
float x = float((gl_VertexIndex & 1) << 2);
|
||||||
float y = float((gl_VertexIndex & 2) << 1);
|
float y = float((gl_VertexIndex & 2) << 1);
|
||||||
gl_Position = vec4(x - 1.0, y - 1.0, 0.0, 1.0);
|
gl_Position = vec4(x - 1.0, y - 1.0, 0.0, 1.0);
|
||||||
texcoord = vec2(x, y) / 2.0;
|
texcoord = vec4(x, y, 0.f, 0.f) / 2.0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue