feat: add grid material

This commit is contained in:
Nick Fisher
2024-09-05 22:19:27 +08:00
parent 80d5b1d23f
commit 0798d5c071
7 changed files with 1563 additions and 1 deletions

View File

@@ -60,6 +60,7 @@ void main(List<String> args) async {
sources.addAll([
"${config.packageRoot.toFilePath()}/native/include/material/gizmo.c",
"${config.packageRoot.toFilePath()}/native/include/material/image.c",
"${config.packageRoot.toFilePath()}/native/include/material/grid.c",
]);
var libs = [
@@ -76,7 +77,6 @@ void main(List<String> args) async {
"image",
"imageio",
"tinyexr",
"gltfio_core",
"filaflat",
"dracodec",
"ibl",

View File

@@ -0,0 +1,12 @@
.global GRID_GRID_OFFSET;
.global GRID_GRID_SIZE;
.global GRID_PACKAGE
.section .rodata
GRID_PACKAGE:
.incbin "grid.bin"
GRID_GRID_OFFSET:
.int 0
GRID_GRID_SIZE:
.int 30210

View File

@@ -0,0 +1,12 @@
.global _GRID_GRID_OFFSET;
.global _GRID_GRID_SIZE;
.global _GRID_PACKAGE
.section __TEXT,__const
_GRID_PACKAGE:
.incbin "grid.bin"
_GRID_GRID_OFFSET:
.int 0
_GRID_GRID_SIZE:
.int 30210

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,13 @@
#ifndef GRID_H_
#define GRID_H_
#include <stdint.h>
extern "C" {
extern const uint8_t GRID_PACKAGE[];
extern int GRID_GRID_OFFSET;
extern int GRID_GRID_SIZE;
}
#define GRID_GRID_DATA (GRID_PACKAGE + GRID_GRID_OFFSET)
#endif