source: nanovis/trunk/PointShader.h @ 5401

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

Compile fixes for USE_POINTSET_RENDERER (not tested).

  • Property svn:eol-style set to native
File size: 603 bytes
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright (c) 2004-2013  HUBzero Foundation, LLC
4 *
5 */
6#ifndef NV_POINTSHADER_H
7#define NV_POINTSHADER_H
8
9#include "Shader.h"
10#include "Texture3D.h"
11
12namespace nv {
13
14class PointShader : public Shader
15{
16public:
17    PointShader();
18
19    virtual ~PointShader();
20
21    void setScale(float scale)
22    {
23        _scale = scale;
24    }
25
26    void setNormalTexture(Texture3D *normal)
27    {
28        _normal = normal;
29    }
30
31    virtual void bind();
32
33    virtual void unbind();
34
35private:
36    float _scale;
37    Texture3D *_normal;
38};
39
40}
41
42#endif
Note: See TracBrowser for help on using the repository browser.