2021-09-16 20:55:56 +02:00
|
|
|
[pixel shader]
|
2023-09-14 19:29:24 +10:00
|
|
|
uniform float2 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2021-09-16 20:55:56 +02:00
|
|
|
{
|
|
|
|
return float4(saturate(u), saturate(u.x + 0.5), saturate(-1.2));
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 0.7 -0.1 0.0 0.0
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(glsl) draw quad
|
2021-09-16 20:55:56 +02:00
|
|
|
probe all rgba (0.7, 0.0, 1.0, 0.0)
|
2022-02-02 13:46:14 +01:00
|
|
|
|
2023-10-20 23:23:46 -03:00
|
|
|
[pixel shader]
|
2023-09-14 19:29:24 +10:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : 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
|
2024-03-19 12:36:23 +01:00
|
|
|
todo(glsl) draw quad
|
2022-02-02 13:46:14 +01:00
|
|
|
probe all rgba (0.0, 0.0, 1.0, 0.0)
|