shaders are always constant, it appears

This commit is contained in:
David Rose 2007-02-08 21:52:57 +00:00
parent fb6de5abb1
commit 0869d551ae
2 changed files with 2 additions and 2 deletions

View File

@ -3138,7 +3138,7 @@ get_texture(TextureStage *stage) const {
// Description: // Description:
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
void NodePath:: void NodePath::
set_shader(Shader *sha, int priority) { set_shader(const Shader *sha, int priority) {
nassertv_always(!is_empty()); nassertv_always(!is_empty());
const RenderAttrib *attrib = const RenderAttrib *attrib =

View File

@ -564,7 +564,7 @@ PUBLISHED:
Texture *get_texture() const; Texture *get_texture() const;
Texture *get_texture(TextureStage *stage) const; Texture *get_texture(TextureStage *stage) const;
void set_shader(Shader *sha, int priority = 0); void set_shader(const Shader *sha, int priority = 0);
void set_shader_off(int priority = 0); void set_shader_off(int priority = 0);
void clear_shader(); void clear_shader();
void set_shader_input(const ShaderInput *inp); void set_shader_input(const ShaderInput *inp);