summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/chains/lut.json
diff options
context:
space:
mode:
Diffstat (limited to 'bgfx/chains/lut.json')
-rw-r--r--bgfx/chains/lut.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/bgfx/chains/lut.json b/bgfx/chains/lut.json
new file mode 100644
index 00000000000..50353b5292b
--- /dev/null
+++ b/bgfx/chains/lut.json
@@ -0,0 +1,36 @@
+{
+ "name": "3D LUT",
+ "author": "W. M. Martinez",
+ "targets": [
+ {
+ "name": "temp",
+ "mode": "guest"
+ }
+ ],
+ "passes": [
+ {
+ "effect": "misc/blit",
+ "name": "Copy To Filtered Texture",
+ "input": [
+ { "sampler": "s_tex", "texture": "screen" }
+ ],
+ "output": "temp"
+ }, {
+ "effect": "misc/lut",
+ "name": "Apply LUT",
+ "input": [
+ {
+ "sampler": "s_tex",
+ "target": "temp"
+ }, {
+ "sampler": "s_3dlut",
+ "option": "bgfx_lut",
+ "bilinear": false,
+ "clamp": true,
+ "selection": "LUT Texture"
+ }
+ ],
+ "output": "output"
+ }
+ ]
+}