2024-11-04 20:20:45 -08:00
|
|
|
[require]
|
|
|
|
shader model < 3.0
|
|
|
|
|
2024-11-04 20:33:13 -08:00
|
|
|
[vertex shader fail]
|
2024-11-04 20:20:45 -08:00
|
|
|
void main(float4 pos : position, out float2 fog : fog, out float4 out_pos : sv_position)
|
|
|
|
{
|
|
|
|
fog = 0.5;
|
|
|
|
out_pos = pos;
|
|
|
|
}
|
|
|
|
|
|
|
|
[require]
|
|
|
|
shader model >= 3.0
|
|
|
|
|
|
|
|
[vertex shader]
|
|
|
|
void main(float4 pos : position, out float2 fog : fog, out float4 out_pos : sv_position)
|
|
|
|
{
|
|
|
|
fog = float2(0.1, 0.2);
|
|
|
|
out_pos = pos;
|
|
|
|
}
|
|
|
|
|
|
|
|
[pixel shader]
|
|
|
|
float4 main(float2 fog : fog) : sv_target
|
|
|
|
{
|
|
|
|
return float4(fog, 0, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
[test]
|
2024-11-05 12:41:25 -08:00
|
|
|
todo(msl) draw quad
|
2024-11-04 20:20:45 -08:00
|
|
|
probe (0, 0) rgba (0.1, 0.2, 0, 1)
|