move Filament headers to own directory under iOS/macOS

This commit is contained in:
Nick Fisher
2023-10-03 00:15:41 +08:00
parent 423f563350
commit 2a3a99c974
412 changed files with 8665 additions and 52334 deletions

View File

@@ -16,7 +16,6 @@ namespace polyvox {
const Material* _ms[1];
Texture* mDummyTexture = nullptr;
public:
FileMaterialProvider(Engine* engine, const void* const data, const size_t size) {
_m = Material::Builder()
@@ -48,13 +47,13 @@ namespace polyvox {
instance->setParameter("baseColorIndex", getUvIndex(config->baseColorUV, config->hasBaseColorTexture));
instance->setParameter("normalIndex", getUvIndex(config->normalUV, config->hasNormalTexture));
if(config->hasNormalTexture) {
Log("HAS NORMAL TEXTURE");
TextureSampler sampler;
instance->setParameter("normalMap", mDummyTexture, sampler);
instance->setParameter("baseColorMap", mDummyTexture, sampler);
} else {
Log("NO NORMAL TEXTURE?");
Log("No normal texture for specified material.");
}
// TextureSampler sampler;
// instance->setParameter("normalMap", mDummyTexture, sampler);
// instance->setParameter("baseColorMap", mDummyTexture, sampler);
return instance;
}

View File

@@ -8,5 +8,5 @@ IMAGE_PACKAGE:
IMAGE_IMAGE_OFFSET:
.int 0
IMAGE_IMAGE_SIZE:
.int 30655
.int 36070

View File

@@ -8,5 +8,5 @@ _IMAGE_PACKAGE:
_IMAGE_IMAGE_OFFSET:
.int 0
_IMAGE_IMAGE_SIZE:
.int 30655
.int 36070

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

View File

@@ -1,12 +0,0 @@
.global UNLIT_OPAQUE_UNLIT_OPAQUE_OFFSET;
.global UNLIT_OPAQUE_UNLIT_OPAQUE_SIZE;
.global UNLIT_OPAQUE_PACKAGE
.section .rodata
UNLIT_OPAQUE_PACKAGE:
.incbin "unlit_opaque.bin"
UNLIT_OPAQUE_UNLIT_OPAQUE_OFFSET:
.int 0
UNLIT_OPAQUE_UNLIT_OPAQUE_SIZE:
.int 78806

View File

@@ -1,12 +0,0 @@
.global _UNLIT_OPAQUE_UNLIT_OPAQUE_OFFSET;
.global _UNLIT_OPAQUE_UNLIT_OPAQUE_SIZE;
.global _UNLIT_OPAQUE_PACKAGE
.section __TEXT,__const
_UNLIT_OPAQUE_PACKAGE:
.incbin "unlit_opaque.bin"
_UNLIT_OPAQUE_UNLIT_OPAQUE_OFFSET:
.int 0
_UNLIT_OPAQUE_UNLIT_OPAQUE_SIZE:
.int 78806

File diff suppressed because it is too large Load Diff

View File

@@ -1,13 +0,0 @@
#ifndef UNLIT_OPAQUE_H_
#define UNLIT_OPAQUE_H_
#include <stdint.h>
extern "C" {
extern const uint8_t UNLIT_OPAQUE_PACKAGE[];
extern int UNLIT_OPAQUE_UNLIT_OPAQUE_OFFSET;
extern int UNLIT_OPAQUE_UNLIT_OPAQUE_SIZE;
}
#define UNLIT_OPAQUE_UNLIT_OPAQUE_DATA (UNLIT_OPAQUE_PACKAGE + UNLIT_OPAQUE_UNLIT_OPAQUE_OFFSET)
#endif