# Color grading using .cube LUTs

**URL:** <https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117>\
**Category:** Demos and projects\
**Tags:** color\
**Created:** [August 17, 2025, 9:46pm UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117 "2025-08-17T21:46:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heaust-ops](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/heaust-ops/32/45470_2.png) [@Heaust-ops](https://forum.babylonjs.com/u/Heaust-ops)\
**Post date:** [August 17, 2025, 9:46pm UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117/1 "2025-08-17T21:46:43Z")

</div>

made a smol package so you can use .cube textures for color grading, idk how accurate it is rn will test out later to compare side-by-side w/ blender.

followed this spec: [https://kono.phpage.fr/images/a/a1/Adobe-cube-lut-specification-1.0.pdf](https://kono.phpage.fr/images/a/a1/Adobe-cube-lut-specification-1.0.pdf)  
package: [babylon-cube-luts - npm](https://www.npmjs.com/package/babylon-cube-luts)  
PG: [https://playground.babylonjs.com/#WP9WDU#208](https://playground.babylonjs.com/#WP9WDU#208)  
repo: [GitHub - Heaust-ops/babylon-cube-luts: an extension to use .cube LUTS in babylonjs](https://github.com/Heaust-ops/babylon-cube-luts)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 18, 2025, 3:27pm UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117/2 "2025-08-18T15:27:06Z")

</div>

I wonder if we should add it like we do for the .3dl format: packages\dev\core\src\Materials\Textures\colorGradingTexture.ts

---

<div class="post-metadata">

**Author:** ![Heaust-ops](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/heaust-ops/32/45470_2.png) [@Heaust-ops](https://forum.babylonjs.com/u/Heaust-ops)\
**Post date:** [August 19, 2025, 8:39am UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117/3 "2025-08-19T08:39:48Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/7/2781507d2453812d80e2a33e7a6077dabebe6aff.jpeg)

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)

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [August 20, 2025, 1:51pm UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117/4 "2025-08-20T13:51:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/7/277aff52a73aef750c43d0b3ab06a4dfca627314.jpeg)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [August 20, 2025, 2:22pm UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117/5 "2025-08-20T14:22:21Z")

</div>

About the shader code it is all handled for you in imageProcessingFunctions.fx and would work everywhere image processing is applied in babylon 🙂

---

<div class="post-metadata">

**Author:** ![Heaust-ops](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/heaust-ops/32/45470_2.png) [@Heaust-ops](https://forum.babylonjs.com/u/Heaust-ops)\
**Post date:** [August 20, 2025, 2:30pm UTC](https://forum.babylonjs.com/t/color-grading-using-cube-luts/60117/6 "2025-08-20T14:30:48Z")

</div>

nice! I’ll check it out 🙂
