source: nanovis/branches/1.1/shaders/one_plane.cg

Last change on this file was 4904, checked in by ldelgass, 9 years ago

Merge serveral changes from trunk. Does not include threading, world space
changes, etc.

File size: 494 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (c) 2004-2013  HUBzero Foundation, LLC
4 *
5 * Authors:
6 *   Wei Qiao <qiaow@purdue.edu>
7 */
8
9float4 main(in float2 uv: TEXCOORD0,
10            uniform sampler2D data,
11            uniform sampler1D tf,
12            uniform float4 render_param) : COLOR
13{
14    float sample = tex2D(data, uv).x;
15    float4 color = tex1D(tf, sample);
16    //return float4(sample, sample, sample, 1);
17    color.w = 1.;
18    return color;
19}
Note: See TracBrowser for help on using the repository browser.