Creation of Switch Node, Fixed Primitives inheritance, and added

Blending to Shader.
This commit is contained in:
brunoherbelin
2020-04-02 00:06:55 +02:00
parent 37a6754de2
commit fc256693dc
13 changed files with 229 additions and 55 deletions

View File

@@ -49,10 +49,21 @@ public:
glm::mat4 modelview;
glm::vec4 color;
typedef enum {
BLEND_NONE = 0,
BLEND_ADD,
BLEND_SUBSTRACT,
BLEND_LAYER_ADD,
BLEND_LAYER_SUBSTRACT,
BLEND_OPACITY
} BlendMode;
BlendMode blending;
void setModelview(float x, float y, float angle, float scale, float aspect_ratio);
protected:
ShadingProgram *program_;
};
#endif /* __SHADER_H_ */