From 73c557ae99b9828382c61d9bbb8b9e500edb2110 Mon Sep 17 00:00:00 2001 From: Dragonite Date: Sat, 16 Nov 2019 23:52:14 -0500 Subject: [PATCH] set up the vertex index thing, although it doesn't work yet --- DDDEditor2.yyp | 16 + datafiles/data/basic/cage-indexed.d3d | 292 ++++++++++++++++++ datafiles_yy/data/basic/cage-indexed.d3d.yy | 19 ++ objects/EditorGraphics/Create_0.gml | 8 + objects/Stuff/Create_0.gml | 3 - .../selection_render_single.gml | 24 +- shaders/sh_shadow/sh_shadow.fsh | 8 +- shaders/sh_shadow/sh_shadow.vsh | 8 +- shaders/shd_bounding_box/shd_bounding_box.fsh | 5 + shaders/shd_bounding_box/shd_bounding_box.vsh | 21 ++ shaders/shd_bounding_box/shd_bounding_box.yy | 7 + .../shd_default_autotile.vsh | 2 +- views/0adcea53-c2c0-45b3-8388-e353c02fcb21.yy | 3 +- views/822d20ac-b324-44d7-9830-1ef34e909b17.yy | 3 +- 14 files changed, 398 insertions(+), 21 deletions(-) create mode 100644 datafiles/data/basic/cage-indexed.d3d create mode 100644 datafiles_yy/data/basic/cage-indexed.d3d.yy create mode 100644 shaders/shd_bounding_box/shd_bounding_box.fsh create mode 100644 shaders/shd_bounding_box/shd_bounding_box.vsh create mode 100644 shaders/shd_bounding_box/shd_bounding_box.yy diff --git a/DDDEditor2.yyp b/DDDEditor2.yyp index acbd467e7..58372b14f 100644 --- a/DDDEditor2.yyp +++ b/DDDEditor2.yyp @@ -2511,6 +2511,14 @@ "resourceType": "GMScript" } }, + { + "Key": "2a65013a-ee4f-4d11-9049-d4d3d65d856a", + "Value": { + "id": "5e0f6e0b-da93-4417-ac54-5da3db7af389", + "resourcePath": "datafiles_yy\\data\\basic\\cage-indexed.d3d.yy", + "resourceType": "GMIncludedFile" + } + }, { "Key": "2a6837e7-9351-4828-b0c8-f7f6095d2e09", "Value": { @@ -7847,6 +7855,14 @@ "resourceType": "GMScript" } }, + { + "Key": "82c9e93d-7f20-4286-b9c0-3b73c6cb331d", + "Value": { + "id": "afbcfaca-88f7-4442-ab09-5b63182a96c2", + "resourcePath": "shaders\\shd_bounding_box\\shd_bounding_box.yy", + "resourceType": "GMShader" + } + }, { "Key": "82f5d587-a372-41de-bb2e-501f9c5980db", "Value": { diff --git a/datafiles/data/basic/cage-indexed.d3d b/datafiles/data/basic/cage-indexed.d3d new file mode 100644 index 000000000..4eb4f7046 --- /dev/null +++ b/datafiles/data/basic/cage-indexed.d3d @@ -0,0 +1,292 @@ +100 +290 GMMC 5.0 1.0000 1 16.0000 0.0000 1 1 0 0 0 +0 4.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 +9 -1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 0.0000 1.0000 +9 33.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 255.0000 1.0000 +9 33.0000 1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 255.0000 1.0000 +9 -1.0000 1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 1.0000 0.0000 1.0000 +9 -1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 0.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 +9 -1.0000 1.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 +9 33.0000 1.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 1.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 255.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 +9 -1.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 0.0000 0.0000 0.0000 1.0000 +9 -1.0000 1.0000 1.0000 0.0000 1.0000 0.0000 0.0000 1.0000 0.0000 1.0000 +9 33.0000 1.0000 1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 1.0000 1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 255.0000 1.0000 +9 -1.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 0.0000 0.0000 0.0000 1.0000 +9 33.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 255.0000 1.0000 +9 33.0000 -1.0000 1.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 255.0000 1.0000 +9 -1.0000 -1.0000 1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 -1.0000 1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 0.0000 1.0000 +9 33.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 255.0000 1.0000 +9 -1.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16711680.0000 1.0000 +9 33.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 1.0000 0.0000 16711935.0000 1.0000 +9 33.0000 1.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 1.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16711935.0000 1.0000 +9 -1.0000 1.0000 33.0000 0.0000 0.0000 1.0000 0.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 1.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 16711680.0000 1.0000 +9 33.0000 1.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 1.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 16711935.0000 1.0000 +9 -1.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 1.0000 31.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 1.0000 16711680.0000 1.0000 +9 33.0000 1.0000 33.0000 0.0000 1.0000 0.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 1.0000 33.0000 0.0000 1.0000 0.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 1.0000 31.0000 0.0000 1.0000 0.0000 1.0000 0.0000 16711935.0000 1.0000 +9 -1.0000 1.0000 31.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 33.0000 -1.0000 31.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 16711935.0000 1.0000 +9 -1.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 31.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 16711680.0000 1.0000 +9 33.0000 -1.0000 31.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 65280.0000 1.0000 +9 -1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 0.0000 1.0000 +9 1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 0.0000 1.0000 +9 1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 0.0000 1.0000 +9 1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 65280.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 65280.0000 1.0000 +9 1.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 65280.0000 1.0000 +9 1.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 0.0000 1.0000 +9 1.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 65280.0000 1.0000 +9 1.0000 33.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65280.0000 1.0000 +9 1.0000 33.0000 1.0000 1.0000 0.0000 0.0000 0.0000 1.0000 65280.0000 1.0000 +9 1.0000 -1.0000 1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 1.0000 -1.0000 1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 1.0000 -1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 1.0000 +9 1.0000 33.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65280.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 1.0000 +9 -1.0000 -1.0000 1.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 0.0000 1.0000 +9 -1.0000 33.0000 1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 65280.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 1.0000 +9 -1.0000 33.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 1.0000 0.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 33.0000 33.0000 0.0000 0.0000 1.0000 0.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16776960.0000 1.0000 +9 1.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 16776960.0000 1.0000 +9 1.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16776960.0000 1.0000 +9 1.0000 33.0000 31.0000 1.0000 0.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 1.0000 33.0000 33.0000 1.0000 0.0000 0.0000 0.0000 1.0000 16776960.0000 1.0000 +9 1.0000 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 31.0000 1.0000 0.0000 0.0000 1.0000 0.0000 16711680.0000 1.0000 +9 1.0000 33.0000 31.0000 1.0000 0.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 -1.0000 31.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 33.0000 33.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 33.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 31.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 -1.0000 31.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 65535.0000 1.0000 +9 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 65280.0000 1.0000 +9 -1.0000 31.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 31.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 65280.0000 1.0000 +9 33.0000 31.0000 1.0000 0.0000 0.0000 1.0000 0.0000 1.0000 65535.0000 1.0000 +9 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 31.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 65535.0000 1.0000 +9 -1.0000 31.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 31.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 65280.0000 1.0000 +9 33.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 31.0000 1.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 65535.0000 1.0000 +9 -1.0000 31.0000 1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 31.0000 1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 65280.0000 1.0000 +9 33.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 65535.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 0.0000 0.0000 65280.0000 1.0000 +9 -1.0000 33.0000 1.0000 0.0000 1.0000 0.0000 0.0000 1.0000 65280.0000 1.0000 +9 33.0000 33.0000 1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 33.0000 33.0000 1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 33.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 65535.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 0.0000 0.0000 65280.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16777215.0000 1.0000 +9 -1.0000 33.0000 33.0000 0.0000 0.0000 1.0000 1.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16776960.0000 1.0000 +9 33.0000 31.0000 33.0000 0.0000 0.0000 1.0000 0.0000 1.0000 16777215.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 31.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 16777215.0000 1.0000 +9 -1.0000 31.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 16776960.0000 1.0000 +9 33.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 31.0000 31.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 16777215.0000 1.0000 +9 -1.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 31.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 16776960.0000 1.0000 +9 33.0000 31.0000 31.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 -1.0000 33.0000 31.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 1.0000 16776960.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 1.0000 0.0000 1.0000 1.0000 16777215.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 1.0000 0.0000 1.0000 1.0000 16777215.0000 1.0000 +9 33.0000 33.0000 31.0000 0.0000 1.0000 0.0000 1.0000 0.0000 16777215.0000 1.0000 +9 -1.0000 33.0000 31.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 33.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 255.0000 1.0000 +9 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 65535.0000 1.0000 +9 31.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 1.0000 255.0000 1.0000 +9 33.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 255.0000 1.0000 +9 33.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 255.0000 1.0000 +9 31.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 255.0000 1.0000 +9 31.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 65535.0000 1.0000 +9 33.0000 33.0000 -1.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 65535.0000 1.0000 +9 33.0000 -1.0000 -1.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 255.0000 1.0000 +9 31.0000 -1.0000 -1.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 255.0000 1.0000 +9 31.0000 -1.0000 1.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 255.0000 1.0000 +9 31.0000 33.0000 1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 65535.0000 1.0000 +9 31.0000 -1.0000 -1.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 255.0000 1.0000 +9 33.0000 33.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 33.0000 1.0000 1.0000 0.0000 0.0000 0.0000 1.0000 65535.0000 1.0000 +9 33.0000 -1.0000 1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 -1.0000 1.0000 1.0000 0.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 -1.0000 -1.0000 1.0000 0.0000 0.0000 1.0000 0.0000 255.0000 1.0000 +9 33.0000 33.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 0.0000 1.0000 1.0000 0.0000 16777215.0000 1.0000 +9 31.0000 33.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16777215.0000 1.0000 +9 31.0000 33.0000 33.0000 0.0000 0.0000 1.0000 1.0000 1.0000 16777215.0000 1.0000 +9 31.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 0.0000 1.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 33.0000 0.0000 0.0000 1.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16711935.0000 1.0000 +9 31.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 1.0000 16711935.0000 1.0000 +9 31.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16777215.0000 1.0000 +9 31.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 1.0000 16777215.0000 1.0000 +9 33.0000 33.0000 31.0000 0.0000 0.0000 -1.0000 1.0000 0.0000 16777215.0000 1.0000 +9 33.0000 -1.0000 31.0000 0.0000 0.0000 -1.0000 0.0000 0.0000 16711935.0000 1.0000 +9 31.0000 -1.0000 31.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 31.0000 -1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 16711935.0000 1.0000 +9 31.0000 33.0000 33.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 16777215.0000 1.0000 +9 31.0000 33.0000 33.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 16777215.0000 1.0000 +9 31.0000 33.0000 31.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 16777215.0000 1.0000 +9 31.0000 -1.0000 31.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 33.0000 31.0000 1.0000 0.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 33.0000 33.0000 1.0000 0.0000 0.0000 0.0000 1.0000 16777215.0000 1.0000 +9 33.0000 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 31.0000 1.0000 0.0000 0.0000 1.0000 0.0000 16711935.0000 1.0000 +9 33.0000 33.0000 31.0000 1.0000 0.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 255.0000 1.0000 +9 31.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 31.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 31.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 1.0000 16711935.0000 1.0000 +9 33.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 31.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 16711935.0000 1.0000 +9 31.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 31.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 33.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 255.0000 1.0000 +9 33.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 31.0000 -1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 31.0000 1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 16711935.0000 1.0000 +9 31.0000 1.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 31.0000 1.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 255.0000 1.0000 +9 31.0000 -1.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 255.0000 1.0000 +9 31.0000 -1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 255.0000 1.0000 +9 33.0000 1.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 1.0000 255.0000 1.0000 +9 33.0000 1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 16711935.0000 1.0000 +9 33.0000 -1.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 255.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 65535.0000 1.0000 +9 31.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 1.0000 16777215.0000 1.0000 +9 33.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 31.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 16777215.0000 1.0000 +9 31.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 33.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 65535.0000 1.0000 +9 33.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 31.0000 31.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 31.0000 33.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 16777215.0000 1.0000 +9 31.0000 33.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 33.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65535.0000 1.0000 +9 31.0000 31.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 65535.0000 1.0000 +9 31.0000 31.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16777215.0000 1.0000 +9 33.0000 31.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65535.0000 1.0000 +9 33.0000 33.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 1.0000 65535.0000 1.0000 +9 33.0000 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16777215.0000 1.0000 +9 33.0000 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16777215.0000 1.0000 +9 33.0000 31.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 16777215.0000 1.0000 +9 33.0000 31.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65535.0000 1.0000 +9 1.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 1.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 0.0000 1.0000 +9 -1.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 1.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 1.0000 16711680.0000 1.0000 +9 1.0000 1.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 1.0000 -1.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 0.0000 1.0000 +9 1.0000 -1.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 -1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 -1.0000 1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 16711680.0000 1.0000 +9 -1.0000 1.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 1.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 0.0000 1.0000 +9 -1.0000 -1.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 0.0000 1.0000 +9 -1.0000 -1.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 1.0000 +9 1.0000 1.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 1.0000 0.0000 1.0000 +9 1.0000 1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 16711680.0000 1.0000 +9 1.0000 -1.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 0.0000 1.0000 +9 1.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 1.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 0.0000 65280.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 -1.0000 0.0000 1.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 1.0000 16776960.0000 1.0000 +9 1.0000 33.0000 33.0000 0.0000 1.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 1.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 1.0000 31.0000 -1.0000 0.0000 -1.0000 0.0000 1.0000 0.0000 65280.0000 1.0000 +9 1.0000 31.0000 33.0000 0.0000 -1.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 31.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 1.0000 16776960.0000 1.0000 +9 -1.0000 33.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 33.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 1.0000 65280.0000 1.0000 +9 -1.0000 31.0000 -1.0000 -1.0000 0.0000 0.0000 1.0000 0.0000 65280.0000 1.0000 +9 -1.0000 31.0000 33.0000 -1.0000 0.0000 0.0000 0.0000 0.0000 16776960.0000 1.0000 +9 1.0000 31.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65280.0000 1.0000 +9 1.0000 33.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 1.0000 65280.0000 1.0000 +9 1.0000 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16776960.0000 1.0000 +9 1.0000 33.0000 33.0000 1.0000 0.0000 0.0000 1.0000 1.0000 16776960.0000 1.0000 +9 1.0000 31.0000 33.0000 1.0000 0.0000 0.0000 1.0000 0.0000 16776960.0000 1.0000 +9 1.0000 31.0000 -1.0000 1.0000 0.0000 0.0000 0.0000 0.0000 65280.0000 1.0000 +1 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 diff --git a/datafiles_yy/data/basic/cage-indexed.d3d.yy b/datafiles_yy/data/basic/cage-indexed.d3d.yy new file mode 100644 index 000000000..29d7199be --- /dev/null +++ b/datafiles_yy/data/basic/cage-indexed.d3d.yy @@ -0,0 +1,19 @@ +{ + "id": "2a65013a-ee4f-4d11-9049-d4d3d65d856a", + "modelName": "GMIncludedFile", + "mvc": "1.0", + "name": "cage-indexed.d3d", + "CopyToMask": -1, + "exists": false, + "exportAction": 0, + "exportDir": "", + "fileName": "cage-indexed.d3d", + "filePath": "datafiles\\data\\basic", + "freeData": false, + "origName": "", + "overwrite": false, + "removeEnd": false, + "size": 0, + "store": false, + "tags": "" +} \ No newline at end of file diff --git a/objects/EditorGraphics/Create_0.gml b/objects/EditorGraphics/Create_0.gml index 41cc6091e..17f1f189a 100644 --- a/objects/EditorGraphics/Create_0.gml +++ b/objects/EditorGraphics/Create_0.gml @@ -1,5 +1,10 @@ event_inherited(); +// this is a very bad workaround and i feel bad about writing it but it +// makes a lot of things easier, like when import_d3d tries to access +// the vertex formats belonging to Stuff.graphics +Stuff.graphics = id; + gpu_set_alphatestenable(true); gpu_set_alphatestref(20); gpu_set_tex_repeat(true); @@ -61,6 +66,9 @@ c_shape_load_trimesh("data\\basic\\ccube.d3d"); c_shape_end_trimesh(c_shape_block); c_transform_identity(); +basic_cage = import_d3d("data\\basic\\cage.d3d", false); +indexed_cage = import_d3d("data\\basic\\cage-indexed.d3d", false); + water_tile_size = 0xffff; water_reptition = 256; diff --git a/objects/Stuff/Create_0.gml b/objects/Stuff/Create_0.gml index 572a3d2e0..d54028d95 100644 --- a/objects/Stuff/Create_0.gml +++ b/objects/Stuff/Create_0.gml @@ -390,10 +390,7 @@ event_prefab[EventNodeTypes.DEACTIVATE_EVENT] = create_event_node_basic("Deactiv // at some point there shouldn't necessarily need to be an active // map in existence for this to work, but for now there does instance_create_depth(0, 0, 0, Controller); -// this feels really weird but import_d3d references Stuff.graphics so it needs -// the variable to have already been set for it to work graphics = instance_create_depth(0, 0, 0, EditorGraphics); -graphics.basic_cage = import_d3d("data\\basic\\cage.d3d", false); // various types of editors map = instance_create_depth(0, 0, 0, EditorModeMap); data = instance_create_depth(0, 0, 0, EditorModeData); diff --git a/scripts/selection_render_single/selection_render_single.gml b/scripts/selection_render_single/selection_render_single.gml index 7ae3df73b..170558f6c 100644 --- a/scripts/selection_render_single/selection_render_single.gml +++ b/scripts/selection_render_single/selection_render_single.gml @@ -2,17 +2,35 @@ var selection = argument0; -transform_set(0, 0, selection.z * TILE_DEPTH + 1, 0, 0, 0, 1, 1, 1); +//transform_set(0, 0, selection.z * TILE_DEPTH + 1, 0, 0, 0, 1, 1, 1); var x1 = selection.x * TILE_WIDTH; var y1 = selection.y * TILE_HEIGHT; var x2 = (selection.x + 1) * TILE_WIDTH; var y2 = (selection.y + 1) * TILE_HEIGHT; +var z1 = selection.z * TILE_DEPTH; +var z2 = (selection.z + 1) * TILE_DEPTH; -var w = 12; +/*var w = 12; draw_line_width_colour(x1, y1, x1, y2, w, c_red, c_red); draw_line_width_colour(x1, y1, x2, y1, w, c_red, c_red); draw_line_width_colour(x2, y1, x2, y2, w, c_red, c_red); draw_line_width_colour(x1, y2, x2, y2, w, c_red, c_red); -transform_reset(); \ No newline at end of file +transform_reset();*/ + +shader_set(shd_bounding_box); +shader_set_uniform_f_array(shader_get_uniform(shd_bounding_box, "actual_color"), [1, 0, 0, 0]); +shader_set_uniform_f_array(shader_get_uniform(shd_bounding_box, "offsets"), [ + x1, y1, z1, + x1, y1, z2, + x1, y2, z1, + z1, y2, z2, + x2, y1, z1, + x2, y1, z2, + x2, y2, z1, + z2, y2, z2, +]); +The vertices are not appearing in the right place, which usually means the math is wrong +vertex_submit(Stuff.graphics.indexed_cage, pr_trianglelist, -1); +shader_reset(); \ No newline at end of file diff --git a/shaders/sh_shadow/sh_shadow.fsh b/shaders/sh_shadow/sh_shadow.fsh index 8ad70ec0f..3ab7ace4b 100644 --- a/shaders/sh_shadow/sh_shadow.fsh +++ b/shaders/sh_shadow/sh_shadow.fsh @@ -1,9 +1,5 @@ -// -// Simple passthrough fragment shader -// uniform vec4 Colour; -void main() -{ +void main() { gl_FragColor = Colour; -} +} \ No newline at end of file diff --git a/shaders/sh_shadow/sh_shadow.vsh b/shaders/sh_shadow/sh_shadow.vsh index 880e439be..9f75b8de3 100644 --- a/shaders/sh_shadow/sh_shadow.vsh +++ b/shaders/sh_shadow/sh_shadow.vsh @@ -1,9 +1,5 @@ -// -// Simple passthrough vertex shader -// attribute vec3 in_Position; // (x,y,z) -void main() -{ +void main() { gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * vec4(in_Position, 1.0); -} +} \ No newline at end of file diff --git a/shaders/shd_bounding_box/shd_bounding_box.fsh b/shaders/shd_bounding_box/shd_bounding_box.fsh new file mode 100644 index 000000000..23cef4522 --- /dev/null +++ b/shaders/shd_bounding_box/shd_bounding_box.fsh @@ -0,0 +1,5 @@ +varying vec4 v_vColour; + +void main() { + gl_FragColor = v_vColour; +} \ No newline at end of file diff --git a/shaders/shd_bounding_box/shd_bounding_box.vsh b/shaders/shd_bounding_box/shd_bounding_box.vsh new file mode 100644 index 000000000..de07282c8 --- /dev/null +++ b/shaders/shd_bounding_box/shd_bounding_box.vsh @@ -0,0 +1,21 @@ +// super secret secret: none of these are actually used except for color, it's +// mostly just all here so that the default vertex format can be used (and even +// then, color isn't actually used to store color data). +attribute vec3 in_Position; +attribute vec3 in_Normal; +attribute vec4 in_Colour; +attribute vec2 in_TextureCoord; + +varying vec4 v_vColour; + +uniform vec4 actual_color; +uniform vec3 offsets[8]; + +void main() { + // this is (r | (g << 1) | (b << 2)) except you can't actually do those operations + // in OpenGL ES apparently, so i'm settling for the next best thing + int index = int(floor(in_Colour.r / 255.)) + int(floor(in_Colour.g / 255.)) * 2 + int(floor(in_Colour.b / 255.)) * 4; + gl_Position = gm_Matrices[MATRIX_WORLD_VIEW_PROJECTION] * vec4(offsets[index], 1.); + + v_vColour = actual_color; +} \ No newline at end of file diff --git a/shaders/shd_bounding_box/shd_bounding_box.yy b/shaders/shd_bounding_box/shd_bounding_box.yy new file mode 100644 index 000000000..b326b2be9 --- /dev/null +++ b/shaders/shd_bounding_box/shd_bounding_box.yy @@ -0,0 +1,7 @@ +{ + "id": "82c9e93d-7f20-4286-b9c0-3b73c6cb331d", + "modelName": "GMShader", + "mvc": "1.0", + "name": "shd_bounding_box", + "type": 1 +} \ No newline at end of file diff --git a/shaders/shd_default_autotile/shd_default_autotile.vsh b/shaders/shd_default_autotile/shd_default_autotile.vsh index 29b2f9b11..1507ffc34 100644 --- a/shaders/shd_default_autotile/shd_default_autotile.vsh +++ b/shaders/shd_default_autotile/shd_default_autotile.vsh @@ -6,7 +6,7 @@ attribute vec4 extra; // (autotile id or 0, na, na, na) varying vec2 v_vTexcoord; varying vec4 v_vColour; -const int maxpositions=12*16*8*2; +const int maxpositions = 12 * 16 * 8 * 2; uniform float texoffset[maxpositions]; void main() { diff --git a/views/0adcea53-c2c0-45b3-8388-e353c02fcb21.yy b/views/0adcea53-c2c0-45b3-8388-e353c02fcb21.yy index dcabd16e5..6383d2db0 100644 --- a/views/0adcea53-c2c0-45b3-8388-e353c02fcb21.yy +++ b/views/0adcea53-c2c0-45b3-8388-e353c02fcb21.yy @@ -6,7 +6,8 @@ "children": [ "aca1e17d-f71a-4f0b-bcbd-bf8d116647da", "fcc7d4ae-cd26-4100-8d60-61259f8e6c06", - "81d689e1-223f-4bb6-b7ed-7089fb93af86" + "81d689e1-223f-4bb6-b7ed-7089fb93af86", + "2a65013a-ee4f-4d11-9049-d4d3d65d856a" ], "filterType": "GMIncludedFile", "folderName": "basic", diff --git a/views/822d20ac-b324-44d7-9830-1ef34e909b17.yy b/views/822d20ac-b324-44d7-9830-1ef34e909b17.yy index 6fd7d0ff3..6b9194862 100644 --- a/views/822d20ac-b324-44d7-9830-1ef34e909b17.yy +++ b/views/822d20ac-b324-44d7-9830-1ef34e909b17.yy @@ -11,7 +11,8 @@ "1b044773-eb50-43cd-b17c-7a74cf219137", "7f00e29b-3540-4ce6-86ee-0e91234d2455", "309412fd-8316-494d-9505-42f395e9f039", - "b937c7e0-75b2-4300-bf00-a62b0d572993" + "b937c7e0-75b2-4300-bf00-a62b0d572993", + "82c9e93d-7f20-4286-b9c0-3b73c6cb331d" ], "filterType": "GMShader", "folderName": "shaders",