summaryrefslogtreecommitdiff
path: root/drivers/gles3/rasterizer_storage_gles3.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-03-12 13:08:56 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-03-12 13:08:56 -0300
commit6d15e157329840732452e66a944186d9f230f8d1 (patch)
tree55d5d2f82cc5a7d6605cbcec7b5f800c0e8106f1 /drivers/gles3/rasterizer_storage_gles3.h
parentb043f0e77dac613e8af0484642333f116d87be6c (diff)
converted skeletons from uniform to texture
Diffstat (limited to 'drivers/gles3/rasterizer_storage_gles3.h')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.h b/drivers/gles3/rasterizer_storage_gles3.h
index 343cee2133..50617b8124 100644
--- a/drivers/gles3/rasterizer_storage_gles3.h
+++ b/drivers/gles3/rasterizer_storage_gles3.h
@@ -769,18 +769,19 @@ public:
/* SKELETON API */
struct Skeleton : RID_Data {
- int size;
bool use_2d;
- Vector<float> bones; //4x3 or 4x2 depending on what is needed
- GLuint ubo;
+ int size;
+ Vector<float> skel_texture;
+ GLuint texture;
SelfList<Skeleton> update_list;
Set<RasterizerScene::InstanceBase *> instances; //instances using skeleton
Skeleton()
: update_list(this) {
- size = 0;
+ size=0;
+
use_2d = false;
- ubo = 0;
+ texture = 0;
}
};