source: branches/nanovis2/packages/vizservers/nanovis/shaders/one_plane.cg @ 3305

Last change on this file since 3305 was 3305, checked in by ldelgass, 11 years ago

sync with trunk

File size: 842 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * ======================================================================
4 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
5 *           Purdue Rendering and Perceptualization Lab (PURPL)
6 *
7 *  Copyright (c) 2004-2012  HUBzero Foundation, LLC
8 *
9 *  See the file "license.terms" for information on usage and
10 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11 * ======================================================================
12 */
13
14
15float4 main(in float2 uv: TEXCOORD0,
16            uniform sampler2D data,
17            uniform sampler1D tf,
18            uniform float4 render_param) : COLOR
19{
20    float sample = tex2D(data, uv).x;
21    float4 color = tex1D(tf, sample);
22    //return float4(sample, sample, sample, 1);
23    color.w = 1.;
24    return color;
25}
Note: See TracBrowser for help on using the repository browser.