yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
2dff16cd
main
1struct VSOutput 2{ 3float4 PositionPS :SV_Position ; 4float3 PosInLightViewSpace :LIGHT_SPACE_POS ; 5float3 NormalWS :NORMALWS ; 6float2 TexCoord :TEXCOORD ; 7}; 8 9float4 AmbientColor = float4 (1 ,0.5 ,0 ,1 ); 10float4 AmbientColor2 = float4 (0.5 ,1 ,0 ,0 ); 11 12float4 main (VSOutput VSOut ) :SV_TARGET 13{ 14if (VSOut .PositionPS .x < 400 ) 15return AmbientColor ; 16else 17return AmbientColor2 ; 18} 19