Added ShaderManager (Experimental)
Former-commit-id: 327e373f2b932e31184e88c5f29bd5bd8fa3ba46
This commit is contained in:
@@ -23,7 +23,7 @@ class NAZARA_API NzLight : public NzSceneNode
|
||||
|
||||
void AddToRenderQueue(NzAbstractRenderQueue* renderQueue) const override;
|
||||
|
||||
void Apply(const NzShader* shader, unsigned int lightUnit) const;
|
||||
void Enable(const NzShader* shader, unsigned int lightUnit) const;
|
||||
|
||||
NzColor GetAmbientColor() const;
|
||||
float GetAttenuation() const;
|
||||
@@ -46,6 +46,8 @@ class NAZARA_API NzLight : public NzSceneNode
|
||||
|
||||
NzLight& operator=(const NzLight& light);
|
||||
|
||||
static void Disable(const NzShader* shader, unsigned int lightUnit);
|
||||
|
||||
private:
|
||||
void Invalidate();
|
||||
void Register();
|
||||
|
||||
Reference in New Issue
Block a user