chore: use float instead of float32_t in FilamentViewer
This commit is contained in:
@@ -1071,7 +1071,7 @@ namespace thermion_filament
|
|||||||
|
|
||||||
.build(*_engine);
|
.build(*_engine);
|
||||||
// Create a copy of the cubemap data
|
// Create a copy of the cubemap data
|
||||||
float32_t *pixelData = new float32_t[18] {
|
float *pixelData = new float[18] {
|
||||||
r, g, b,
|
r, g, b,
|
||||||
r, g, b,
|
r, g, b,
|
||||||
r, g, b,
|
r, g, b,
|
||||||
@@ -1082,12 +1082,12 @@ namespace thermion_filament
|
|||||||
|
|
||||||
Texture::PixelBufferDescriptor::Callback freeCallback = [](void *buf, size_t, void *data)
|
Texture::PixelBufferDescriptor::Callback freeCallback = [](void *buf, size_t, void *data)
|
||||||
{
|
{
|
||||||
delete[] reinterpret_cast<float32_t *>(data);
|
delete[] reinterpret_cast<float *>(data);
|
||||||
};
|
};
|
||||||
|
|
||||||
auto pbd = Texture::PixelBufferDescriptor(
|
auto pbd = Texture::PixelBufferDescriptor(
|
||||||
pixelData,
|
pixelData,
|
||||||
18 * sizeof(float32_t),
|
18 * sizeof(float),
|
||||||
Texture::Format::RGB,
|
Texture::Format::RGB,
|
||||||
Texture::Type::FLOAT,
|
Texture::Type::FLOAT,
|
||||||
freeCallback,
|
freeCallback,
|
||||||
|
|||||||
Reference in New Issue
Block a user