Debian Codegraph @

examples/data/ex_prim_high_pixel.hlsl

raw
1 // To match GLSL's
2 float2 mod(float2 x, float2 y) {
3 return x - y * floor(x / y);
4 }
5
6 float4 ps_main(VS_OUTPUT Input) : COLOR0
7 {
8 return float4(mod(Input.TexCoord / 32.0, 1.0), 0, 1);
9 }