KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12
System : Windows NT SERVER-PC 10.0 build 26200 (Windows 11) AMD64
User : ServerPC ( 0)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  C:/Program Files/PCSX2/resources/shaders/opengl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : C:/Program Files/PCSX2/resources/shaders/opengl/merge.glsl
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
// SPDX-License-Identifier: GPL-3.0+

//#version 420 // Keep it for editor detection

#ifdef FRAGMENT_SHADER

in vec4 PSin_p;
in vec2 PSin_t;
in vec4 PSin_c;

uniform vec4 BGColor;

layout(binding = 0) uniform sampler2D TextureSampler;

layout(location = 0) out vec4 SV_Target0;

void ps_main0()
{
	vec4 c = texture(TextureSampler, PSin_t);
	// Note: clamping will be done by fixed unit
	c.a *= 2.0f;
	SV_Target0 = c;
}

void ps_main1()
{
	vec4 c = texture(TextureSampler, PSin_t);
	c.a = BGColor.a;
	SV_Target0 = c;
}

#endif

Anon7 - 2021