mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
Merge branch 'master' of https://github.com/mamedev/mame
This commit is contained in:
commit
f0f73d06fd
@ -7,7 +7,7 @@
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{ "effect": "default/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
|
@ -14,6 +14,9 @@
|
||||
// type: string
|
||||
"author": "Ryan Holtz & ImJezze",
|
||||
|
||||
// transform (optional): This value determines whether the screen container is transformed the chain's shaders, otherwise the core renderer will handle the transformation (scale, offset).
|
||||
"transform": true,
|
||||
|
||||
// sliders (optional): The list of sliders used by all of the entries in this chain. Can be omitted if no entries use any sliders.
|
||||
"sliders": [
|
||||
// type (required): The sliders's conceptual type. Is it a list of string selections? Is it a single floating-point value? Does it require RGB values, or XY values?
|
||||
@ -315,7 +318,7 @@
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{ "effect": "hlsl/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "NTSC Skip",
|
||||
"disablewhen": [
|
||||
{ "type": "slider", "condition": "notequal", "combine": "and", "name": "adjustments", "value": 0 },
|
||||
@ -496,7 +499,7 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{ "effect": "hlsl/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
|
@ -49,7 +49,7 @@
|
||||
],
|
||||
"output": "scaled_out"
|
||||
},
|
||||
{ "effect": "hq2x/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "scaled_out" }
|
||||
|
@ -49,7 +49,7 @@
|
||||
],
|
||||
"output": "scaled_out"
|
||||
},
|
||||
{ "effect": "hq3x/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "scaled_out" }
|
||||
|
@ -49,7 +49,7 @@
|
||||
],
|
||||
"output": "scaled_out"
|
||||
},
|
||||
{ "effect": "hq4x/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "scaled_out" }
|
||||
|
@ -31,7 +31,7 @@
|
||||
],
|
||||
|
||||
"passes": [
|
||||
{ "effect": "pillarbox_left_horizontal/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Blit to scalable target",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "screen" }
|
||||
@ -79,7 +79,7 @@
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_left_horizontal/saturation",
|
||||
"effect": "misc/saturation",
|
||||
"name": "Saturation Pass",
|
||||
"disablewhen": [
|
||||
{ "type": "slider", "condition": "equal", "name": "saturation", "value": 100 }
|
||||
@ -92,7 +92,7 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{ "effect": "pillarbox_left_horizontal/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
|
@ -31,7 +31,7 @@
|
||||
],
|
||||
|
||||
"passes": [
|
||||
{ "effect": "pillarbox_left_vertical/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Blit to scalable target",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "screen" }
|
||||
@ -79,7 +79,7 @@
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_left_vertical/saturation",
|
||||
"effect": "misc/saturation",
|
||||
"name": "Saturation Pass",
|
||||
"disablewhen": [
|
||||
{ "type": "slider", "condition": "equal", "name": "saturation", "value": 100 }
|
||||
@ -92,7 +92,7 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{ "effect": "pillarbox_left_vertical/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
|
@ -31,7 +31,7 @@
|
||||
],
|
||||
|
||||
"passes": [
|
||||
{ "effect": "pillarbox_right_horizontal/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Blit to scalable target",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "screen" }
|
||||
@ -79,7 +79,7 @@
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_right_horizontal/saturation",
|
||||
"effect": "misc/saturation",
|
||||
"name": "Saturation Pass",
|
||||
"disablewhen": [
|
||||
{ "type": "slider", "condition": "equal", "name": "saturation", "value": 100 }
|
||||
@ -92,7 +92,7 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{ "effect": "pillarbox_right_horizontal/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
|
@ -31,7 +31,7 @@
|
||||
],
|
||||
|
||||
"passes": [
|
||||
{ "effect": "pillarbox_right_vertical/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Blit to scalable target",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "screen" }
|
||||
@ -79,7 +79,7 @@
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_right_vertical/saturation",
|
||||
"effect": "misc/saturation",
|
||||
"name": "Saturation Pass",
|
||||
"disablewhen": [
|
||||
{ "type": "slider", "condition": "equal", "name": "saturation", "value": 100 }
|
||||
@ -92,7 +92,7 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{ "effect": "pillarbox_right_vertical/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
|
69
bgfx/chains/super-2xbr-3d-2p.json
Normal file
69
bgfx/chains/super-2xbr-3d-2p.json
Normal file
@ -0,0 +1,69 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR 3D Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR 3D (2 passes)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "guest",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "guest" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
78
bgfx/chains/super-2xbr-3d-3p-smoother.json
Normal file
78
bgfx/chains/super-2xbr-3d-3p-smoother.json
Normal file
@ -0,0 +1,78 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR 3D Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR 3D (3 passes, smoother)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "guest",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "guest" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
86
bgfx/chains/super-4xbr-3d-4p.json
Normal file
86
bgfx/chains/super-4xbr-3d-4p.json
Normal file
@ -0,0 +1,86 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super 4XBR 3D Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super 4XBR 3D (4 passes)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "guest",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass3",
|
||||
"name": "Pass 3",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "guest" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
86
bgfx/chains/super-4xbr-3d-6p-smoother.json
Normal file
86
bgfx/chains/super-4xbr-3d-6p-smoother.json
Normal file
@ -0,0 +1,86 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super 4XBR 3D Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super 4XBR 3D (3 passes, smoother)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "guest",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass3",
|
||||
"name": "Pass 3",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "guest" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "guest"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "guest" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
76
bgfx/chains/super-xbr-2p.json
Normal file
76
bgfx/chains/super-xbr-2p.json
Normal file
@ -0,0 +1,76 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR 3D Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR (2 passes)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "pass0",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass1",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "pass0"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "pass0" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "pass1" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
84
bgfx/chains/super-xbr-3p-smoother.json
Normal file
84
bgfx/chains/super-xbr-3p-smoother.json
Normal file
@ -0,0 +1,84 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR (3 passes, smoother)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "pass02",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass1",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "pass02"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "pass02" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "pass1" }
|
||||
],
|
||||
"output": "pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "pass1" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
123
bgfx/chains/super-xbr-6p.json
Normal file
123
bgfx/chains/super-xbr-6p.json
Normal file
@ -0,0 +1,123 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR (6 passes)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "group0_pass02",
|
||||
"mode": "guest",
|
||||
"scale": 1,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "group0_pass1",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "group1_pass02",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "group1_pass1",
|
||||
"mode": "guest",
|
||||
"scale": 4,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "group0_pass02"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group0_pass02" },
|
||||
{ "sampler": "ORIG_texture", "texture": "screen" }
|
||||
],
|
||||
"output": "group0_pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group0_pass1" }
|
||||
],
|
||||
"output": "group0_pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group0_pass1" }
|
||||
],
|
||||
"output": "group1_pass02"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group1_pass02" },
|
||||
{ "sampler": "ORIG_texture", "target": "group0_pass1" }
|
||||
],
|
||||
"output": "group1_pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group1_pass1" }
|
||||
],
|
||||
"output": "group1_pass1"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "group1_pass1" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
98
bgfx/chains/super-xbr-deposterize.json
Normal file
98
bgfx/chains/super-xbr-deposterize.json
Normal file
@ -0,0 +1,98 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR (deposterize)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "deposterize",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass012",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "misc/deposterize-pass0",
|
||||
"name": "Deposterize, Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "deposterize"
|
||||
},
|
||||
{
|
||||
"effect": "misc/deposterize-pass1",
|
||||
"name": "Deposterize, Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "deposterize" }
|
||||
],
|
||||
"output": "deposterize"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "deposterize" }
|
||||
],
|
||||
"output": "pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "pass012" }
|
||||
],
|
||||
"output": "pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass2",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "pass012" }
|
||||
],
|
||||
"output": "pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "pass012" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
76
bgfx/chains/super-xbr-fast-3p.json
Normal file
76
bgfx/chains/super-xbr-fast-3p.json
Normal file
@ -0,0 +1,76 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR (3 passes, faster)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "all_passes",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "all_passes"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "all_passes" }
|
||||
],
|
||||
"output": "all_passes"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass2",
|
||||
"name": "Pass 5",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "all_passes" }
|
||||
],
|
||||
"output": "all_passes"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/custom-jinc2-sharper",
|
||||
"name": "Jinc2 Upscaler",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "all_passes" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
113
bgfx/chains/super-xbr-fast-6p.json
Normal file
113
bgfx/chains/super-xbr-fast-6p.json
Normal file
@ -0,0 +1,113 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "Super XBR (6 passes, faster)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "group0_pass012",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "group1_pass012",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "to_blit",
|
||||
"mode": "guest",
|
||||
"scale": 4,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
],
|
||||
"output": "group0_pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group0_pass012" }
|
||||
],
|
||||
"output": "group0_pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass2",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group0_pass012" }
|
||||
],
|
||||
"output": "group0_pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass0",
|
||||
"name": "Pass 3",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group0_pass012" }
|
||||
],
|
||||
"output": "group1_pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass1",
|
||||
"name": "Pass 4",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group1_pass012" }
|
||||
],
|
||||
"output": "group1_pass012"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass2",
|
||||
"name": "Pass 5",
|
||||
"input": [
|
||||
{ "sampler": "s0", "target": "group1_pass012" }
|
||||
],
|
||||
"output": "to_blit"
|
||||
},
|
||||
{
|
||||
"effect": "misc/blit",
|
||||
"name": "Upscaling Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "to_blit" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
@ -33,7 +33,7 @@
|
||||
],
|
||||
"output": "scaled_out"
|
||||
},
|
||||
{ "effect": "hq2x/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "scaled_out" }
|
||||
|
@ -7,14 +7,14 @@
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{ "effect": "unfiltered/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Copy To Unstretched Texture",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
],
|
||||
"output": "temp"
|
||||
},
|
||||
{ "effect": "unfiltered/blit",
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "temp" }
|
||||
|
@ -1,121 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// blit.json: A simple texture-to-target copy.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
// blend (required): The blend state for this effect.
|
||||
"blend": {
|
||||
// equation (optional): What equation to perform on the source and destination blend values.
|
||||
// values: "add", "sub", "revSub", "min", "max"
|
||||
// default: "add"
|
||||
//
|
||||
// "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
|
||||
"equation": "add",
|
||||
|
||||
// blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
|
||||
// values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha"
|
||||
// defaults (srcColor, srcAlpha): "1"
|
||||
// defaults (dstColor, dstAlpha): "0"
|
||||
//
|
||||
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
"depth": {
|
||||
// function (optional): The depth function to use when drawing.
|
||||
// values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
|
||||
// default: "always"
|
||||
"function": "always",
|
||||
|
||||
// writeenable (optional): Whether to store Z-buffer data.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"writeenable": false
|
||||
},
|
||||
|
||||
// cull (required): The cull mode for this effect.
|
||||
"cull": {
|
||||
// mode (optional): What winding, if any, to cull.
|
||||
// values: "none", "cw", "ccw"
|
||||
// default: "ccw"
|
||||
//
|
||||
// "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
|
||||
"mode": "none"
|
||||
},
|
||||
|
||||
// write (required): Write enable for color and alpha channels.
|
||||
"write": {
|
||||
// rgb (optional): Whether to store color data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"rgb": true,
|
||||
|
||||
// alpha (optional): Whether to store alpha data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"alpha": true
|
||||
},
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/hq3x/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/hq3x/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
||||
{
|
||||
// name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
|
||||
// value: A string containing the name of the uniform as described above.
|
||||
//
|
||||
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX
|
||||
// code if they are used by the shader. These names are:
|
||||
// "u_screen_dims"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
// "u_inv_screen_dims"
|
||||
// The reciprocal of u_screen_dims.
|
||||
// Valid values: xy
|
||||
// "u_source_dims"
|
||||
// The size, in pixels, of the screen texture incoming to the chain.
|
||||
// Valid values: xy
|
||||
// "u_rotation_type"
|
||||
// This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
|
||||
// Valid values: x
|
||||
// "u_swap_xy"
|
||||
// Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
|
||||
// Valid values: x
|
||||
// "u_quad_dims"
|
||||
// The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
|
||||
// Valid values: xy
|
||||
// "u_tex_sizeN"
|
||||
// The dimensions, in pixels, of the texture in input pair N. Starts at 0.
|
||||
// valid values: xy
|
||||
"name": "s_tex",
|
||||
|
||||
// type (required): The type of the uniform.
|
||||
// values: "int", "vec4", "mat3", "mat4"
|
||||
//
|
||||
// Note: "int" should only be used for samplers.
|
||||
"type": "int",
|
||||
|
||||
// values (required): The array of numbers with which to initialize the uniform.
|
||||
// value: A JSON array containin the correct amount of numbers to initialize a uniform of the
|
||||
// above-specified type. The following size rules should be followed:
|
||||
// "int": 1 float
|
||||
// "vec4": 4 floats
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,121 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// blit.json: A simple texture-to-target copy.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
// blend (required): The blend state for this effect.
|
||||
"blend": {
|
||||
// equation (optional): What equation to perform on the source and destination blend values.
|
||||
// values: "add", "sub", "revSub", "min", "max"
|
||||
// default: "add"
|
||||
//
|
||||
// "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
|
||||
"equation": "add",
|
||||
|
||||
// blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
|
||||
// values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha"
|
||||
// defaults (srcColor, srcAlpha): "1"
|
||||
// defaults (dstColor, dstAlpha): "0"
|
||||
//
|
||||
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
"depth": {
|
||||
// function (optional): The depth function to use when drawing.
|
||||
// values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
|
||||
// default: "always"
|
||||
"function": "always",
|
||||
|
||||
// writeenable (optional): Whether to store Z-buffer data.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"writeenable": false
|
||||
},
|
||||
|
||||
// cull (required): The cull mode for this effect.
|
||||
"cull": {
|
||||
// mode (optional): What winding, if any, to cull.
|
||||
// values: "none", "cw", "ccw"
|
||||
// default: "ccw"
|
||||
//
|
||||
// "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
|
||||
"mode": "none"
|
||||
},
|
||||
|
||||
// write (required): Write enable for color and alpha channels.
|
||||
"write": {
|
||||
// rgb (optional): Whether to store color data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"rgb": true,
|
||||
|
||||
// alpha (optional): Whether to store alpha data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"alpha": true
|
||||
},
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/hq4x/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/hq4x/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
||||
{
|
||||
// name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
|
||||
// value: A string containing the name of the uniform as described above.
|
||||
//
|
||||
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX
|
||||
// code if they are used by the shader. These names are:
|
||||
// "u_screen_dims"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
// "u_inv_screen_dims"
|
||||
// The reciprocal of u_screen_dims.
|
||||
// Valid values: xy
|
||||
// "u_source_dims"
|
||||
// The size, in pixels, of the screen texture incoming to the chain.
|
||||
// Valid values: xy
|
||||
// "u_rotation_type"
|
||||
// This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
|
||||
// Valid values: x
|
||||
// "u_swap_xy"
|
||||
// Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
|
||||
// Valid values: x
|
||||
// "u_quad_dims"
|
||||
// The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
|
||||
// Valid values: xy
|
||||
// "u_tex_sizeN"
|
||||
// The dimensions, in pixels, of the texture in input pair N. Starts at 0.
|
||||
// valid values: xy
|
||||
"name": "s_tex",
|
||||
|
||||
// type (required): The type of the uniform.
|
||||
// values: "int", "vec4", "mat3", "mat4"
|
||||
//
|
||||
// Note: "int" should only be used for samplers.
|
||||
"type": "int",
|
||||
|
||||
// values (required): The array of numbers with which to initialize the uniform.
|
||||
// value: A JSON array containin the correct amount of numbers to initialize a uniform of the
|
||||
// above-specified type. The following size rules should be followed:
|
||||
// "int": 1 float
|
||||
// "vec4": 4 floats
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
]
|
||||
}
|
@ -65,11 +65,11 @@
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/hq2x/vs_blit",
|
||||
"vertex": "chains/misc/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/hq2x/fs_blit",
|
||||
"fragment": "chains/misc/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
37
bgfx/effects/misc/deposterize-pass0.json
Normal file
37
bgfx/effects/misc/deposterize-pass0.json
Normal file
@ -0,0 +1,37 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's Deposterize Shader - Pass0
|
||||
|
||||
Copyright (C) 2011/2016 Hyllian/Jararaca - sergiogdb@gmail.com
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/misc/vs_deposterize-pass0",
|
||||
"fragment": "chains/misc/fs_deposterize-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "EQ_THRESH1", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "DIFF_THRESH1", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
37
bgfx/effects/misc/deposterize-pass1.json
Normal file
37
bgfx/effects/misc/deposterize-pass1.json
Normal file
@ -0,0 +1,37 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's Deposterize Shader - Pass1
|
||||
|
||||
Copyright (C) 2011/2016 Hyllian/Jararaca - sergiogdb@gmail.com
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/misc/vs_deposterize-pass1",
|
||||
"fragment": "chains/misc/fs_deposterize-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "EQ_THRESH2", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "DIFF_THRESH2", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
@ -21,8 +21,8 @@
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/pillarbox_left_vertical/vs_saturation",
|
||||
"fragment": "chains/pillarbox_left_vertical/fs_saturation",
|
||||
"vertex": "chains/misc/vs_saturation",
|
||||
"fragment": "chains/misc/fs_saturation",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }
|
@ -1,121 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// blit.json: A simple texture-to-target copy.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
// blend (required): The blend state for this effect.
|
||||
"blend": {
|
||||
// equation (optional): What equation to perform on the source and destination blend values.
|
||||
// values: "add", "sub", "revSub", "min", "max"
|
||||
// default: "add"
|
||||
//
|
||||
// "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
|
||||
"equation": "add",
|
||||
|
||||
// blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
|
||||
// values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha"
|
||||
// defaults (srcColor, srcAlpha): "1"
|
||||
// defaults (dstColor, dstAlpha): "0"
|
||||
//
|
||||
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
"depth": {
|
||||
// function (optional): The depth function to use when drawing.
|
||||
// values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
|
||||
// default: "always"
|
||||
"function": "always",
|
||||
|
||||
// writeenable (optional): Whether to store Z-buffer data.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"writeenable": false
|
||||
},
|
||||
|
||||
// cull (required): The cull mode for this effect.
|
||||
"cull": {
|
||||
// mode (optional): What winding, if any, to cull.
|
||||
// values: "none", "cw", "ccw"
|
||||
// default: "ccw"
|
||||
//
|
||||
// "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
|
||||
"mode": "none"
|
||||
},
|
||||
|
||||
// write (required): Write enable for color and alpha channels.
|
||||
"write": {
|
||||
// rgb (optional): Whether to store color data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"rgb": true,
|
||||
|
||||
// alpha (optional): Whether to store alpha data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"alpha": true
|
||||
},
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/pillarbox_left_horizontal/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/pillarbox_left_horizontal/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
||||
{
|
||||
// name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
|
||||
// value: A string containing the name of the uniform as described above.
|
||||
//
|
||||
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX
|
||||
// code if they are used by the shader. These names are:
|
||||
// "u_screen_dims"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
// "u_inv_screen_dims"
|
||||
// The reciprocal of u_screen_dims.
|
||||
// Valid values: xy
|
||||
// "u_source_dims"
|
||||
// The size, in pixels, of the screen texture incoming to the chain.
|
||||
// Valid values: xy
|
||||
// "u_rotation_type"
|
||||
// This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
|
||||
// Valid values: x
|
||||
// "u_swap_xy"
|
||||
// Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
|
||||
// Valid values: x
|
||||
// "u_quad_dims"
|
||||
// The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
|
||||
// Valid values: xy
|
||||
// "u_tex_sizeN"
|
||||
// The dimensions, in pixels, of the texture in input pair N. Starts at 0.
|
||||
// valid values: xy
|
||||
"name": "s_tex",
|
||||
|
||||
// type (required): The type of the uniform.
|
||||
// values: "int", "vec4", "mat3", "mat4"
|
||||
//
|
||||
// Note: "int" should only be used for samplers.
|
||||
"type": "int",
|
||||
|
||||
// values (required): The array of numbers with which to initialize the uniform.
|
||||
// value: A JSON array containin the correct amount of numbers to initialize a uniform of the
|
||||
// above-specified type. The following size rules should be followed:
|
||||
// "int": 1 float
|
||||
// "vec4": 4 floats
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// saturation.json: Applies saturation to an image.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always"
|
||||
},
|
||||
"cull": { "mode": "none" },
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/pillarbox_left_horizontal/vs_saturation",
|
||||
"fragment": "chains/pillarbox_left_horizontal/fs_saturation",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
@ -1,121 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// blit.json: A simple texture-to-target copy.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
// blend (required): The blend state for this effect.
|
||||
"blend": {
|
||||
// equation (optional): What equation to perform on the source and destination blend values.
|
||||
// values: "add", "sub", "revSub", "min", "max"
|
||||
// default: "add"
|
||||
//
|
||||
// "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
|
||||
"equation": "add",
|
||||
|
||||
// blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
|
||||
// values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha"
|
||||
// defaults (srcColor, srcAlpha): "1"
|
||||
// defaults (dstColor, dstAlpha): "0"
|
||||
//
|
||||
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
"depth": {
|
||||
// function (optional): The depth function to use when drawing.
|
||||
// values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
|
||||
// default: "always"
|
||||
"function": "always",
|
||||
|
||||
// writeenable (optional): Whether to store Z-buffer data.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"writeenable": false
|
||||
},
|
||||
|
||||
// cull (required): The cull mode for this effect.
|
||||
"cull": {
|
||||
// mode (optional): What winding, if any, to cull.
|
||||
// values: "none", "cw", "ccw"
|
||||
// default: "ccw"
|
||||
//
|
||||
// "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
|
||||
"mode": "none"
|
||||
},
|
||||
|
||||
// write (required): Write enable for color and alpha channels.
|
||||
"write": {
|
||||
// rgb (optional): Whether to store color data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"rgb": true,
|
||||
|
||||
// alpha (optional): Whether to store alpha data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"alpha": true
|
||||
},
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/pillarbox_left_vertical/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/pillarbox_left_vertical/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
||||
{
|
||||
// name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
|
||||
// value: A string containing the name of the uniform as described above.
|
||||
//
|
||||
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX
|
||||
// code if they are used by the shader. These names are:
|
||||
// "u_screen_dims"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
// "u_inv_screen_dims"
|
||||
// The reciprocal of u_screen_dims.
|
||||
// Valid values: xy
|
||||
// "u_source_dims"
|
||||
// The size, in pixels, of the screen texture incoming to the chain.
|
||||
// Valid values: xy
|
||||
// "u_rotation_type"
|
||||
// This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
|
||||
// Valid values: x
|
||||
// "u_swap_xy"
|
||||
// Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
|
||||
// Valid values: x
|
||||
// "u_quad_dims"
|
||||
// The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
|
||||
// Valid values: xy
|
||||
// "u_tex_sizeN"
|
||||
// The dimensions, in pixels, of the texture in input pair N. Starts at 0.
|
||||
// valid values: xy
|
||||
"name": "s_tex",
|
||||
|
||||
// type (required): The type of the uniform.
|
||||
// values: "int", "vec4", "mat3", "mat4"
|
||||
//
|
||||
// Note: "int" should only be used for samplers.
|
||||
"type": "int",
|
||||
|
||||
// values (required): The array of numbers with which to initialize the uniform.
|
||||
// value: A JSON array containin the correct amount of numbers to initialize a uniform of the
|
||||
// above-specified type. The following size rules should be followed:
|
||||
// "int": 1 float
|
||||
// "vec4": 4 floats
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,121 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// blit.json: A simple texture-to-target copy.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
// blend (required): The blend state for this effect.
|
||||
"blend": {
|
||||
// equation (optional): What equation to perform on the source and destination blend values.
|
||||
// values: "add", "sub", "revSub", "min", "max"
|
||||
// default: "add"
|
||||
//
|
||||
// "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
|
||||
"equation": "add",
|
||||
|
||||
// blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
|
||||
// values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha"
|
||||
// defaults (srcColor, srcAlpha): "1"
|
||||
// defaults (dstColor, dstAlpha): "0"
|
||||
//
|
||||
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
"depth": {
|
||||
// function (optional): The depth function to use when drawing.
|
||||
// values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
|
||||
// default: "always"
|
||||
"function": "always",
|
||||
|
||||
// writeenable (optional): Whether to store Z-buffer data.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"writeenable": false
|
||||
},
|
||||
|
||||
// cull (required): The cull mode for this effect.
|
||||
"cull": {
|
||||
// mode (optional): What winding, if any, to cull.
|
||||
// values: "none", "cw", "ccw"
|
||||
// default: "ccw"
|
||||
//
|
||||
// "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
|
||||
"mode": "none"
|
||||
},
|
||||
|
||||
// write (required): Write enable for color and alpha channels.
|
||||
"write": {
|
||||
// rgb (optional): Whether to store color data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"rgb": true,
|
||||
|
||||
// alpha (optional): Whether to store alpha data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"alpha": true
|
||||
},
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/pillarbox_right_horizontal/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/pillarbox_right_horizontal/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
||||
{
|
||||
// name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
|
||||
// value: A string containing the name of the uniform as described above.
|
||||
//
|
||||
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX
|
||||
// code if they are used by the shader. These names are:
|
||||
// "u_screen_dims"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
// "u_inv_screen_dims"
|
||||
// The reciprocal of u_screen_dims.
|
||||
// Valid values: xy
|
||||
// "u_source_dims"
|
||||
// The size, in pixels, of the screen texture incoming to the chain.
|
||||
// Valid values: xy
|
||||
// "u_rotation_type"
|
||||
// This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
|
||||
// Valid values: x
|
||||
// "u_swap_xy"
|
||||
// Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
|
||||
// Valid values: x
|
||||
// "u_quad_dims"
|
||||
// The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
|
||||
// Valid values: xy
|
||||
// "u_tex_sizeN"
|
||||
// The dimensions, in pixels, of the texture in input pair N. Starts at 0.
|
||||
// valid values: xy
|
||||
"name": "s_tex",
|
||||
|
||||
// type (required): The type of the uniform.
|
||||
// values: "int", "vec4", "mat3", "mat4"
|
||||
//
|
||||
// Note: "int" should only be used for samplers.
|
||||
"type": "int",
|
||||
|
||||
// values (required): The array of numbers with which to initialize the uniform.
|
||||
// value: A JSON array containin the correct amount of numbers to initialize a uniform of the
|
||||
// above-specified type. The following size rules should be followed:
|
||||
// "int": 1 float
|
||||
// "vec4": 4 floats
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// saturation.json: Applies saturation to an image.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always"
|
||||
},
|
||||
"cull": { "mode": "none" },
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/pillarbox_right_horizontal/vs_saturation",
|
||||
"fragment": "chains/pillarbox_right_horizontal/fs_saturation",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
@ -1,121 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// blit.json: A simple texture-to-target copy.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
// blend (required): The blend state for this effect.
|
||||
"blend": {
|
||||
// equation (optional): What equation to perform on the source and destination blend values.
|
||||
// values: "add", "sub", "revSub", "min", "max"
|
||||
// default: "add"
|
||||
//
|
||||
// "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
|
||||
"equation": "add",
|
||||
|
||||
// blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
|
||||
// values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha"
|
||||
// defaults (srcColor, srcAlpha): "1"
|
||||
// defaults (dstColor, dstAlpha): "0"
|
||||
//
|
||||
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
"depth": {
|
||||
// function (optional): The depth function to use when drawing.
|
||||
// values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
|
||||
// default: "always"
|
||||
"function": "always",
|
||||
|
||||
// writeenable (optional): Whether to store Z-buffer data.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"writeenable": false
|
||||
},
|
||||
|
||||
// cull (required): The cull mode for this effect.
|
||||
"cull": {
|
||||
// mode (optional): What winding, if any, to cull.
|
||||
// values: "none", "cw", "ccw"
|
||||
// default: "ccw"
|
||||
//
|
||||
// "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
|
||||
"mode": "none"
|
||||
},
|
||||
|
||||
// write (required): Write enable for color and alpha channels.
|
||||
"write": {
|
||||
// rgb (optional): Whether to store color data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"rgb": true,
|
||||
|
||||
// alpha (optional): Whether to store alpha data when drawing.
|
||||
// values: true, false
|
||||
// default: false
|
||||
"alpha": true
|
||||
},
|
||||
|
||||
// vertex (required): The vertex shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"vertex": "chains/pillarbox_right_vertical/vs_blit",
|
||||
|
||||
// pixel/fragment (required): The pixel or fragment shader to use when drawing.
|
||||
// value: A string containing the path and name of a shader file to use, minus the extension.
|
||||
"fragment": "chains/pillarbox_right_vertical/fs_blit",
|
||||
|
||||
// uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
|
||||
"uniforms": [
|
||||
{
|
||||
// name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
|
||||
// value: A string containing the name of the uniform as described above.
|
||||
//
|
||||
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX
|
||||
// code if they are used by the shader. These names are:
|
||||
// "u_screen_dims"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
// "u_inv_screen_dims"
|
||||
// The reciprocal of u_screen_dims.
|
||||
// Valid values: xy
|
||||
// "u_source_dims"
|
||||
// The size, in pixels, of the screen texture incoming to the chain.
|
||||
// Valid values: xy
|
||||
// "u_rotation_type"
|
||||
// This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
|
||||
// Valid values: x
|
||||
// "u_swap_xy"
|
||||
// Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
|
||||
// Valid values: x
|
||||
// "u_quad_dims"
|
||||
// The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
|
||||
// Valid values: xy
|
||||
// "u_tex_sizeN"
|
||||
// The dimensions, in pixels, of the texture in input pair N. Starts at 0.
|
||||
// valid values: xy
|
||||
"name": "s_tex",
|
||||
|
||||
// type (required): The type of the uniform.
|
||||
// values: "int", "vec4", "mat3", "mat4"
|
||||
//
|
||||
// Note: "int" should only be used for samplers.
|
||||
"type": "int",
|
||||
|
||||
// values (required): The array of numbers with which to initialize the uniform.
|
||||
// value: A JSON array containin the correct amount of numbers to initialize a uniform of the
|
||||
// above-specified type. The following size rules should be followed:
|
||||
// "int": 1 float
|
||||
// "vec4": 4 floats
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
]
|
||||
}
|
@ -1,30 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Ryan Holtz
|
||||
//============================================================
|
||||
//
|
||||
// saturation.json: Applies saturation to an image.
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always"
|
||||
},
|
||||
"cull": { "mode": "none" },
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/pillarbox_right_vertical/vs_saturation",
|
||||
"fragment": "chains/pillarbox_right_vertical/fs_saturation",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
38
bgfx/effects/xbr/super-xbr/custom-jinc2-sharper.json
Normal file
38
bgfx/effects/xbr/super-xbr/custom-jinc2-sharper.json
Normal file
@ -0,0 +1,38 @@
|
||||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's jinc windowed-jinc 2-lobe sharper with anti-ringing Shader
|
||||
|
||||
Copyright (C) 2011-2014 Hyllian/Jararaca - sergiogdb@gmail.com
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_custom-jinc2-sharper",
|
||||
"fragment": "chains/xbr/super-xbr/fs_custom-jinc2-sharper",
|
||||
"uniforms": [
|
||||
{ "name": "s_p", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "JINC2_WINDOW_SINC", "type": "vec4", "values": [ 0.42, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "JINC2_SINC", "type": "vec4", "values": [ 0.92, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "JINC2_AR_STRENGTH", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass0.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass0.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR 3D Shader, pass0 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass0",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
59
bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass1.json
Normal file
59
bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass1.json
Normal file
@ -0,0 +1,59 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR 3D Shader, pass1 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass1",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
59
bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass2.json
Normal file
59
bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass2.json
Normal file
@ -0,0 +1,59 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR 3D Shader, pass2 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass2",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass2",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass0.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass0.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super 4XBR 3D Shader - pass0 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass0",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
59
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass1.json
Normal file
59
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass1.json
Normal file
@ -0,0 +1,59 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super 4XBR 3D Shader - pass0 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass1",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass2.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass2.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super 4XBR 3D Shader - pass0 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass2",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass2",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
59
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass3.json
Normal file
59
bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass3.json
Normal file
@ -0,0 +1,59 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super 4XBR 3D Shader - pass0 *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass3",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass3",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-xbr-fast-pass0.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-xbr-fast-pass0.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader, Fast (pass0) *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass0",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-xbr-fast-pass1.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-xbr-fast-pass1.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader, Fast (pass1) *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass1",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-xbr-fast-pass2.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-xbr-fast-pass2.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader, Fast (pass2) *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass2",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass2",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-xbr-pass0.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-xbr-pass0.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-xbr-pass0",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-xbr-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
59
bgfx/effects/xbr/super-xbr/super-xbr-pass1.json
Normal file
59
bgfx/effects/xbr/super-xbr/super-xbr-pass1.json
Normal file
@ -0,0 +1,59 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-xbr-pass1",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-xbr-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/super-xbr/super-xbr-pass2.json
Normal file
58
bgfx/effects/xbr/super-xbr/super-xbr-pass2.json
Normal file
@ -0,0 +1,58 @@
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
|
||||
******* Super XBR Shader *******
|
||||
|
||||
Copyright (c) 2016 Hyllian - sergiogdb@gmail.com
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always",
|
||||
"writeenable": false
|
||||
},
|
||||
"cull": {
|
||||
"mode": "none"
|
||||
},
|
||||
"write": {
|
||||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/xbr/super-xbr/vs_super-xbr-pass2",
|
||||
"fragment": "chains/xbr/super-xbr/fs_super-xbr-pass2",
|
||||
"uniforms": [
|
||||
{ "name": "s0", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/misc/fs_bob-and-ghost-deinterlace.bin
Normal file
BIN
bgfx/shaders/dx11/chains/misc/fs_bob-and-ghost-deinterlace.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/misc/fs_deposterize-pass0.bin
Normal file
BIN
bgfx/shaders/dx11/chains/misc/fs_deposterize-pass0.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/misc/fs_deposterize-pass1.bin
Normal file
BIN
bgfx/shaders/dx11/chains/misc/fs_deposterize-pass1.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/misc/vs_deposterize-pass0.bin
Normal file
BIN
bgfx/shaders/dx11/chains/misc/vs_deposterize-pass0.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/misc/vs_deposterize-pass1.bin
Normal file
BIN
bgfx/shaders/dx11/chains/misc/vs_deposterize-pass1.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv2-deposterize/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv2-deposterize/fs_blit.bin
Normal file
Binary file not shown.
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv2-fast/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv2-fast/fs_blit.bin
Normal file
Binary file not shown.
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv2-multipass/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv2-multipass/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv2-multipass/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv2-multipass/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv2-noblend/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv2-noblend/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv2-noblend/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv2-noblend/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv3-multipass/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv3-multipass/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv3-multipass/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv3-multipass/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv3-noblend/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv3-noblend/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv3-noblend/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv3-noblend/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv3/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv3/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-lv3/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-lv3/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-dilation/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-dilation/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-dilation/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-dilation/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-multipass/fs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-multipass/fs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-multipass/vs_blit.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr-mlv4-multipass/vs_blit.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv1-noblend.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv1-noblend.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv2-3d.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv2-3d.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv2-fast.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv2-fast.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv2.bin
Normal file
BIN
bgfx/shaders/dx11/chains/xbr/fs_xbr-lv2.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user