I wonder if we should add it like we do for the .3dl format: packages\dev\core\src\Materials\Textures\colorGradingTexture.ts
2 Likes
oh for sure, looking at how colorGradingTexture.ts works, I think that’s the better way to do it actually!
it even handles cases where 3d textures aren’t supported. extending that case can handle the .cube case where we get a 1D LUT.
a few questions tho
will prolly need different shaders depending on 1D or 3D LUT too.
also the most we can do trilinear w/ the texture options but the .cube spec demands tetrahedral so rn experimenting w/ that. I think most programs do trilinear anyway and give you the option to switch to tetrahedral which just has a more expensive shader altogether. (not sure but rn it’s looking that way)
About the shader code it is all handled for you in imageProcessingFunctions.fx and would work everywhere image processing is applied in babylon 
1 Like