mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 03:51:39 +12:00
fix: incorrect lut texture format
This commit is contained in:
parent
3005468b3f
commit
7e8582d985
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ void RendererMTL::initGraphicsContext(SDL_Window* window) {
|
||||||
// Textures
|
// Textures
|
||||||
MTL::TextureDescriptor* textureDescriptor = MTL::TextureDescriptor::alloc()->init();
|
MTL::TextureDescriptor* textureDescriptor = MTL::TextureDescriptor::alloc()->init();
|
||||||
textureDescriptor->setTextureType(MTL::TextureType1DArray);
|
textureDescriptor->setTextureType(MTL::TextureType1DArray);
|
||||||
textureDescriptor->setPixelFormat(MTL::PixelFormatR16Unorm);
|
textureDescriptor->setPixelFormat(MTL::PixelFormatR16Uint);
|
||||||
textureDescriptor->setWidth(LIGHT_LUT_TEXTURE_WIDTH);
|
textureDescriptor->setWidth(LIGHT_LUT_TEXTURE_WIDTH);
|
||||||
textureDescriptor->setArrayLength(Lights::LUT_Count);
|
textureDescriptor->setArrayLength(Lights::LUT_Count);
|
||||||
textureDescriptor->setUsage(MTL::TextureUsageShaderRead);
|
textureDescriptor->setUsage(MTL::TextureUsageShaderRead);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue