2021-09-16 11:55:56 -07:00
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float2 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2021-09-16 11:55:56 -07: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-05-03 15:48:22 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (0.7, 0.0, 1.0, 0.0)
|
2022-02-02 04:46:14 -08:00
|
|
|
|
2023-10-20 19:23:46 -07:00
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2022-02-02 04:46:14 -08:00
|
|
|
{
|
2022-03-07 17:55:43 -08:00
|
|
|
int4 i = u;
|
|
|
|
return saturate(i);
|
2022-02-02 04:46:14 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2022-03-07 17:55:43 -08:00
|
|
|
uniform 0 float4 -2 0 2 -1
|
2024-05-03 15:48:22 -07:00
|
|
|
draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (0.0, 0.0, 1.0, 0.0)
|