2021-09-16 20:55:56 +02:00
|
|
|
[pixel shader]
|
|
|
|
float4 main(uniform float2 u) : sv_target
|
|
|
|
{
|
|
|
|
return float4(saturate(u), saturate(u.x + 0.5), saturate(-1.2));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 0.7 -0.1 0.0 0.0
|
|
|
|
draw quad
|
|
|
|
probe all rgba (0.7, 0.0, 1.0, 0.0)
|
2022-02-02 13:46:14 +01:00
|
|
|
|
|
|
|
[pixel shader]
|
2022-03-07 19:55:43 -06:00
|
|
|
float4 main(uniform float4 u) : sv_target
|
2022-02-02 13:46:14 +01:00
|
|
|
{
|
2022-03-07 19:55:43 -06:00
|
|
|
int4 i = u;
|
|
|
|
return saturate(i);
|
2022-02-02 13:46:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-03-07 19:55:43 -06:00
|
|
|
uniform 0 float4 -2 0 2 -1
|
2022-02-02 13:46:14 +01:00
|
|
|
draw quad
|
|
|
|
probe all rgba (0.0, 0.0, 1.0, 0.0)
|