source: trunk/packages/vizservers/nanovis/shaders/heightcolor.cg @ 2852

Last change on this file since 2852 was 2852, checked in by ldelgass, 8 years ago

Fix up line endings and formatting in shader code, also add emacs magic line
to get C++ mode highlighting

File size: 273 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
3float4 main(float4 texCoord : TEXCOORD0,
4            uniform float opacity,
5            uniform sampler1D tf) : COLOR
6{
7    float4 color = tex1D(tf, texCoord.z);
8    color.w = opacity;
9    return color;
10}
Note: See TracBrowser for help on using the repository browser.