Last change
on this file since 2956 was
2956,
checked in by ldelgass, 13 years ago
|
First batch of converting shaders to use new parameter support in NvShader?.
|
-
Property svn:eol-style set to
native
|
File size:
538 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | #ifndef POINTSHADER_H |
---|
3 | #define POINTSHADER_H |
---|
4 | |
---|
5 | #include "NvShader.h" |
---|
6 | #include "Texture3D.h" |
---|
7 | |
---|
8 | class PointShader : public NvShader |
---|
9 | { |
---|
10 | public: |
---|
11 | PointShader(); |
---|
12 | |
---|
13 | virtual ~PointShader(); |
---|
14 | |
---|
15 | void setScale(float scale) |
---|
16 | { |
---|
17 | _scale = scale; |
---|
18 | } |
---|
19 | |
---|
20 | void setNormalTexture(Texture3D *normal) |
---|
21 | { |
---|
22 | _normal = normal; |
---|
23 | } |
---|
24 | |
---|
25 | virtual void bind(); |
---|
26 | |
---|
27 | virtual void unbind(); |
---|
28 | |
---|
29 | private: |
---|
30 | float _scale; |
---|
31 | float _scale; |
---|
32 | Texture3D *_normal; |
---|
33 | }; |
---|
34 | |
---|
35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.