mirror of
https://github.com/cemu-project/cemu_graphic_packs.git
synced 2024-12-23 16:31:50 +01:00
31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
#version 420
|
|
#extension GL_ARB_texture_gather : enable
|
|
#extension GL_ARB_separate_shader_objects : enable
|
|
// shader 826f5c3cbb703c6e
|
|
uniform ivec4 uf_remappedPS[2];
|
|
uniform float uf_alphaTestRef;
|
|
layout(binding = 0) uniform sampler2D textureUnitPS0;// Tex0 addr 0x1d6f8000 res 1024x1024x1 dim 1 tm: 4 format 0033 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler0 ClampX/Y/Z: 0 0 2 border: 0
|
|
layout(binding = 1) uniform sampler2D textureUnitPS1;// Tex1 addr 0x1d5f6000 res 1024x1024x1 dim 1 tm: 4 format 0033 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler1 ClampX/Y/Z: 0 0 2 border: 0
|
|
layout(binding = 2) uniform sampler2D textureUnitPS2;// Tex2 addr 0x2985f000 res 256x256x1 dim 1 tm: 4 format 0031 compSel: 0 1 2 3 mipView: 0x0 (num 0x1) sliceView: 0x0 (num 0x1) Sampler2 ClampX/Y/Z: 0 0 2 border: 0
|
|
layout(location = 0) in vec4 passParameterSem130;
|
|
layout(location = 1) in vec4 passParameterSem131;
|
|
layout(location = 2) in vec4 passParameterSem132;
|
|
layout(location = 3) in vec4 passParameterSem133;
|
|
layout(location = 0) out vec4 passPixelColor0;
|
|
layout(location = 1) out vec4 passPixelColor1;
|
|
layout(location = 2) out vec4 passPixelColor2;
|
|
uniform vec2 uf_fragCoordScale;
|
|
int clampFI32(int v)
|
|
{
|
|
if( v == 0x7FFFFFFF )
|
|
return floatBitsToInt(1.0);
|
|
else if( v == 0xFFFFFFFF )
|
|
return floatBitsToInt(0.0);
|
|
return floatBitsToInt(clamp(intBitsToFloat(v), 0.0, 1.0));
|
|
}
|
|
float mul_nonIEEE(float a, float b){ if( a == 0.0 || b == 0.0 ) return 0.0; return a*b; }
|
|
void main()
|
|
{
|
|
|
|
}
|