mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-16 12:49:59 +01:00
DRAFT Source geometry distortion shape nodes
MeshSurface allows distortion of surface of sources, image shader vertex change of mesh surface, new handles to distort mesh in geometry view
This commit is contained in:
@@ -49,7 +49,8 @@ Node::Node() : initialized_(false), visible_(true), refcount_(0)
|
||||
scale_ = glm::vec3(1.f);
|
||||
rotation_ = glm::vec3(0.f);
|
||||
translation_ = glm::vec3(0.f);
|
||||
crop_ = glm::vec3(1.f);
|
||||
crop_ = glm::vec4(-1.f, 1.f, 1.f, -1.f);
|
||||
data_ = glm::zero<glm::mat4>();
|
||||
#if DEBUG_SCENE
|
||||
num_nodes_++;
|
||||
#endif
|
||||
@@ -83,6 +84,7 @@ void Node::copyTransform(const Node *other)
|
||||
rotation_ = other->rotation_;
|
||||
translation_ = other->translation_;
|
||||
crop_ = other->crop_;
|
||||
data_ = other->data_;
|
||||
}
|
||||
|
||||
void Node::update( float dt)
|
||||
|
||||
Reference in New Issue
Block a user