mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 10:19:59 +01:00
Creation of Switch Node, Fixed Primitives inheritance, and added
Blending to Shader.
This commit is contained in:
11
Shader.h
11
Shader.h
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user