Debian Codegraph @

examples/data/ex_shader_pixel.hlsl

raw
1 texture al_tex;
2 sampler2D s = sampler_state {
3 texture = <al_tex>;
4 };
5 float3 tint;
6 float4 ps_main(VS_OUTPUT Input) : COLOR0
7 {
8 float4 pixel = tex2D(s, Input.TexCoord.xy);
9 pixel.r *= tint.r;
10 pixel.g *= tint.g;
11 pixel.b *= tint.b;
12 return pixel;
13 }