2024-06-21 08:19:17 -07:00
|
|
|
[pixel shader]
|
|
|
|
uniform float4 n;
|
|
|
|
uniform float4 i;
|
|
|
|
uniform float4 ng;
|
|
|
|
|
|
|
|
float4 main() : sv_target
|
|
|
|
{
|
|
|
|
return faceforward(n, i, ng);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 1.0 0.0 0.0 0.0
|
|
|
|
uniform 8 float4 1.0 0.2 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (-10.0, -20.0, -30.0, -40.0)
|
|
|
|
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 1.0 0.0 0.0 0.0
|
|
|
|
uniform 8 float4 1.0 -0.2 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (-10.0, -20.0, -30.0, -40.0)
|
|
|
|
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 1.0 0.0 0.0 0.0
|
|
|
|
uniform 8 float4 -1.0 0.0 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (10.0, 20.0, 30.0, 40.0)
|
|
|
|
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 0.0 -1.0 0.0 0.0
|
|
|
|
uniform 8 float4 0.0 1.0 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (10.0, 20.0, 30.0, 40.0)
|
|
|
|
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 1.0 0.0 0.0 0.0
|
|
|
|
uniform 8 float4 0.0 1.0 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (-10.0, -20.0, -30.0, -40.0)
|
|
|
|
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 0.0 0.0 0.0 0.0
|
|
|
|
uniform 8 float4 0.0 1.0 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (-10.0, -20.0, -30.0, -40.0)
|
|
|
|
|
|
|
|
uniform 0 float4 10.0 20.0 30.0 40.0
|
|
|
|
uniform 4 float4 0.0 0.0 0.0 0.0
|
|
|
|
uniform 8 float4 0.0 0.0 0.0 0.0
|
2024-10-21 07:23:27 -07:00
|
|
|
todo(msl) draw quad
|
2024-06-21 08:19:17 -07:00
|
|
|
probe (0, 0) rgba (-10.0, -20.0, -30.0, -40.0)
|