Skip to content

Commit b5a54b7

Browse files
anikom15rb6502
authored andcommittedOct 7, 2018
HLSL Color Transforms and 3D LUT (#4043)
* Remove broken scanline uniform from post_pass * Add 3D LUT to HLSL * Allow individual LUTs for screen and UI * WIP: Port 3D LUT to BGFX * Finish porting LUT to BGFX * Add individual phosphor color conversion for HLSL new file: hlsl/chroma.fx Shader for converting xyY3 to sRGB modified: hlsl/phosphor.fx Minor changes to emphasize idea that phosphors are color agnostic modified: hlsl/post.fx Conversion from signal RGB to xyY3 modified: src/osd/modules/render/d3d/d3dhlsl.cpp modified: src/osd/modules/render/d3d/d3dhlsl.h modified: src/osd/windows/winmain.cpp modified: src/osd/windows/winmain.h * Add phosphor examples and update presets * Port phosphor color shaders to BGFX * Fix missing newlines at EOF
1 parent 7b42e2f commit b5a54b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1026
-172
lines changed
 

‎bgfx/chains/hlsl.json

+123-60
Large diffs are not rendered by default.

‎bgfx/chains/lut.json

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "3D LUT",
3+
"author": "W. M. Martinez",
4+
"targets": [
5+
{
6+
"name": "temp",
7+
"mode": "guest"
8+
}
9+
],
10+
"passes": [
11+
{
12+
"effect": "misc/blit",
13+
"name": "Copy To Filtered Texture",
14+
"input": [
15+
{ "sampler": "s_tex", "texture": "screen" }
16+
],
17+
"output": "temp"
18+
}, {
19+
"effect": "misc/lut",
20+
"name": "Apply LUT",
21+
"input": [
22+
{
23+
"sampler": "s_tex",
24+
"target": "temp"
25+
}, {
26+
"sampler": "s_3dlut",
27+
"option": "bgfx_lut",
28+
"bilinear": false,
29+
"clamp": true,
30+
"selection": "LUT Texture"
31+
}
32+
],
33+
"output": "output"
34+
}
35+
]
36+
}

0 commit comments

Comments
 (0)
Please sign in to comment.