yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
74b0abb9
main
1float4 AmbientColor = float4 (1 ,0.5 ,0 ,1 ); 2float4 AmbientColor2 = float4 (0.5 ,1 ,0 ,0 ); 3 4float4 main (float4 vpos :SV_POSITION ) :SV_TARGET 5{ 6float4 vpos_t = float4 (vpos .xyz ,1 /vpos .w ); 7if (vpos_t .x < 400 ) 8return AmbientColor ; 9else 10return AmbientColor2 ; 11} 12