2022-12-16 16:03:53 +08:00

27 lines
543 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#include"shader.h"
#include<GLM/glm.hpp>
// 发光物不需要纹理所以说需要另外的shader
// 在sceneviewer中被包含
class Illuminant {
private:
glm::vec3 _position;
glm::vec3 _color;
public:
Illuminant();
Illuminant(glm::vec3 position, glm::vec3 color);
inline glm::vec3 position();
glm::vec3 color();
void setPosition(glm::vec3 position);
void setColor(glm::vec3 color);
};
inline glm::vec3 Illuminant::position() {
return _position;
}
inline glm::vec3 Illuminant::color() {
return _color;
}