2023-04-20 22:49:29 -07:00
|
|
|
[require]
|
|
|
|
shader model >= 4.0
|
|
|
|
|
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2023-04-20 22:49:29 -07:00
|
|
|
{
|
|
|
|
return D3DCOLORtoUBYTE4(u);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 -0.5 6.5 7.5 3.4
|
2024-03-19 04:36:23 -07:00
|
|
|
todo(glsl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (1912.0, 1657.0, -127.0, 867.0) 1
|
2023-04-20 22:49:29 -07:00
|
|
|
|
|
|
|
[pixel shader]
|
2023-09-14 02:29:24 -07:00
|
|
|
uniform float4 u;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
2023-04-20 22:49:29 -07:00
|
|
|
{
|
|
|
|
return D3DCOLORtoUBYTE4(u.x);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 -0.5 6.5 7.5 3.4
|
2024-03-19 04:36:23 -07:00
|
|
|
todo(glsl) draw quad
|
2024-02-10 11:16:22 -08:00
|
|
|
probe (0, 0) rgba (-127.0, -127.0, -127.0, -127.0) 1
|