mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-12 21:20:06 +00:00
56 lines
717 B
GLSL
56 lines
717 B
GLSL
|
float4 PixelShaderFunction(float4 input, int c, int d) : COLOR0
|
||
|
{
|
||
|
switch(c)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
switch(c)
|
||
|
{
|
||
|
default:
|
||
|
}
|
||
|
|
||
|
switch (c) {
|
||
|
case 1:
|
||
|
++input;
|
||
|
break;
|
||
|
case 2:
|
||
|
--input;
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
switch (c) {
|
||
|
case 1:
|
||
|
++input;
|
||
|
break;
|
||
|
case 2:
|
||
|
switch (d) {
|
||
|
case 2:
|
||
|
input += 2.0;
|
||
|
break;
|
||
|
case 3:
|
||
|
input += 3.0;
|
||
|
break;
|
||
|
}
|
||
|
break;
|
||
|
default:
|
||
|
input += 4.0;
|
||
|
}
|
||
|
|
||
|
switch (c) {
|
||
|
case 1:
|
||
|
}
|
||
|
|
||
|
switch (c) {
|
||
|
case 1:
|
||
|
case 2:
|
||
|
case 3:
|
||
|
++input;
|
||
|
break;
|
||
|
case 4:
|
||
|
case 5:
|
||
|
--input;
|
||
|
}
|
||
|
|
||
|
return input;
|
||
|
}
|