2023-11-16 19:54:19 +09:00
|
|
|
[pixel shader]
|
|
|
|
uniform float4 a;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return radians(a);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-12-18 00:09:37 -06:00
|
|
|
uniform 0 float4 0.0 0.030 0.150 0.180
|
2024-11-22 15:45:54 +08:00
|
|
|
draw quad
|
2024-12-18 00:09:37 -06:00
|
|
|
probe (0, 0) rgba (0.0, 0.00052359877, 0.00261799387, 0.00314159265)
|
2023-11-16 20:22:37 +09:00
|
|
|
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
uniform float4 a;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
2024-12-18 00:09:37 -06:00
|
|
|
return degrees(a) / 100;
|
2023-11-16 20:22:37 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-12-18 00:09:37 -06:00
|
|
|
uniform 0 float4 0.0 0.78539816 -0.78539816 0.157079632
|
2024-11-22 15:45:54 +08:00
|
|
|
draw quad
|
2024-12-18 00:09:37 -06:00
|
|
|
probe (0, 0) rgba (0.0, 0.45, -0.45, 0.09) 1
|