File: texmodulate.cg

package info (click to toggle)
nvidia-cg-toolkit 3.1.0013-5
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 187,516 kB
  • sloc: ansic: 510,168; cpp: 34,693; makefile: 745
file content (11 lines) | stat: -rw-r--r-- 325 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
// Simple fragment program to modulate interpolated
// color with a decal texture lookup.

float4 texmodulate(float4 color    : COLOR,
                   float2 texcoord : TEXCOORD0,

           uniform float2 scaleFactor,
           uniform sampler2D decal) : COLOR
{
  return color * tex2D(decal, texcoord * scaleFactor);
}