File: ex_shader_multitex_pixel.hlsl

package info (click to toggle)
allegro5 2%3A5.2.10.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,820 kB
  • sloc: ansic: 109,795; cpp: 12,976; objc: 4,592; java: 2,845; python: 2,595; javascript: 1,238; sh: 1,008; makefile: 40; xml: 27; pascal: 24
file content (14 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
texture al_tex;
sampler2D s1 = sampler_state {
   texture = <al_tex>;
};
texture tex2;
sampler2D s2 = sampler_state {
   texture = <tex2>;
};

float4 ps_main(VS_OUTPUT Input) : COLOR0
{
   float4 color = tex2D(s2, frac(Input.TexCoord * 100));
   return color * tex2D(s1, Input.TexCoord);
}