mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
bgfx: Ported xBR shaders from libretro. [Ryan Holtz, Hyllian]
This commit is contained in:
parent
6d0dfc548c
commit
ea6bc4d8ce
653 changed files with 9721 additions and 762 deletions
|
@ -1,4 +1,4 @@
|
|||
{ "name": "Default Bilinear Filter",
|
||||
{ "name": "Default Nearest-Neighbor Filter",
|
||||
"author": "Ryan Holtz",
|
||||
"targets": [
|
||||
{ "name": "temp",
|
||||
|
@ -8,10 +8,17 @@
|
|||
],
|
||||
"passes": [
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Upscale",
|
||||
"name": "Copy To Filtered Texture",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
],
|
||||
"output": "temp"
|
||||
},
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "temp" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "supereagle/supereagle",
|
||||
"effect": "eagle/supereagle",
|
||||
"name": "Super Eagle pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
|
@ -41,7 +41,7 @@
|
|||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "hq2x/hq2x",
|
||||
"effect": "hqx/hq2x",
|
||||
"name": "HQ2x pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
|
@ -41,7 +41,7 @@
|
|||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "hq3x/hq3x",
|
||||
"effect": "hqx/hq3x",
|
||||
"name": "HQ3x pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
|
@ -41,7 +41,7 @@
|
|||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "hq4x/hq4x",
|
||||
"effect": "hqx/hq4x",
|
||||
"name": "HQ4x pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
|
@ -1,24 +1,11 @@
|
|||
{ "name": "Default Nearest-Neighbor Filter",
|
||||
"author": "Ryan Holtz",
|
||||
"targets": [
|
||||
{ "name": "temp",
|
||||
"mode": "guest",
|
||||
"bilinear": false
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Copy To Unstretched Texture",
|
||||
"name": "Unfiltered Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
],
|
||||
"output": "temp"
|
||||
},
|
||||
{ "effect": "misc/blit",
|
||||
"name": "Final Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "temp" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
|
|
48
bgfx/chains/xbr/xbr-hybrid.json
Normal file
48
bgfx/chains/xbr/xbr-hybrid.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
{
|
||||
"name": "2xBR v3.7c+ReverseAA (squared)",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "pass0",
|
||||
"mode": "guest",
|
||||
"scale": 2,
|
||||
"bilinear": true,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass1",
|
||||
"mode": "guest",
|
||||
"scale": 4,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-hybrid/2xbr-hybrid-v4b",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "pass0"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-hybrid/2xbr-hybrid-v4b",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass0" }
|
||||
],
|
||||
"output": "pass1"
|
||||
},
|
||||
{
|
||||
"effect": "misc/blit",
|
||||
"name": "Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "pass1" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
42
bgfx/chains/xbr/xbr-lv1-noblend.json
Normal file
42
bgfx/chains/xbr/xbr-lv1-noblend.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv1-noblend Shader
|
||||
|
||||
Copyright (C) 2011-2014 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": "xBR-lv1 No Blend",
|
||||
"author": "Hyllian",
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv1-noblend",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
42
bgfx/chains/xbr/xbr-lv2-3d.json
Normal file
42
bgfx/chains/xbr/xbr-lv2-3d.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2-3d Shader
|
||||
|
||||
Copyright (C) 2011/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": "xBR-lv2-3d",
|
||||
"author": "Hyllian",
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-3d",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
59
bgfx/chains/xbr/xbr-lv2-accuracy-multipass.json
Normal file
59
bgfx/chains/xbr/xbr-lv2-accuracy-multipass.json
Normal file
|
@ -0,0 +1,59 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 Accuracy
|
||||
|
||||
Copyright (C) 2011-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.
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "xBR-lv2 Accuracy",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "internal" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
47
bgfx/chains/xbr/xbr-lv2-accuracy-smart-blur.json
Normal file
47
bgfx/chains/xbr/xbr-lv2-accuracy-smart-blur.json
Normal file
|
@ -0,0 +1,47 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
{
|
||||
"name": "xBR-lv2 Accuracy w/ Smart Blur",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "native",
|
||||
"mode": "native",
|
||||
"bilinear": true,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "internal" }
|
||||
],
|
||||
"output": "native"
|
||||
},
|
||||
{
|
||||
"effect": "blurs/smart-blur",
|
||||
"name": "Blur Pass",
|
||||
"input": [
|
||||
{ "sampler": "s_p", "target": "native" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
41
bgfx/chains/xbr/xbr-lv2-deposterize.json
Normal file
41
bgfx/chains/xbr/xbr-lv2-deposterize.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
{
|
||||
"name": "xBR-lv2 w/ Deposterize",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "deposterize",
|
||||
"mode": "guest",
|
||||
"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/xbr-lv2",
|
||||
"name": "xBR LV2 pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "deposterize" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
57
bgfx/chains/xbr/xbr-lv2-fast.json
Normal file
57
bgfx/chains/xbr/xbr-lv2-fast.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2-fast Shader
|
||||
|
||||
Copyright (C) 2011/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": "xBR-lv2 Fast",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-fast",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "misc/blit",
|
||||
"name": "Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
60
bgfx/chains/xbr/xbr-lv2-multipass.json
Normal file
60
bgfx/chains/xbr/xbr-lv2-multipass.json
Normal file
|
@ -0,0 +1,60 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 C (squared) - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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.
|
||||
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "xBR-lv2 Multipass",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-c-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "internal" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
57
bgfx/chains/xbr/xbr-lv2-noblend.json
Normal file
57
bgfx/chains/xbr/xbr-lv2-noblend.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2-noblend Shader
|
||||
|
||||
Copyright (C) 2011/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": "xBR-lv2 No Blend",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-noblend",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "misc/blit",
|
||||
"name": "Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
57
bgfx/chains/xbr/xbr-lv2.json
Normal file
57
bgfx/chains/xbr/xbr-lv2.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2 Shader
|
||||
|
||||
Copyright (C) 2011/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": "xBR-lv2",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "misc/blit",
|
||||
"name": "Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "target": "internal" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
60
bgfx/chains/xbr/xbr-lv3-multipass.json
Normal file
60
bgfx/chains/xbr/xbr-lv3-multipass.json
Normal file
|
@ -0,0 +1,60 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR level 3 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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.
|
||||
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "xBR-lv3 Multipass",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "internal",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv3-multipass/xbr-lv3-pass0",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-lv3-multipass/xbr-lv3-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "internal" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
42
bgfx/chains/xbr/xbr-lv3-noblend.json
Normal file
42
bgfx/chains/xbr/xbr-lv3-noblend.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv3-noblend - Shader
|
||||
|
||||
Copyright (C) 2011/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": "xBR-lv3 No Blend",
|
||||
"author": "Hyllian",
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv3-noblend",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
42
bgfx/chains/xbr/xbr-lv3.json
Normal file
42
bgfx/chains/xbr/xbr-lv3.json
Normal file
|
@ -0,0 +1,42 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv3 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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": "xBR-lv3",
|
||||
"author": "Hyllian",
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv3",
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
98
bgfx/chains/xbr/xbr-mlv4-dilation.json
Normal file
98
bgfx/chains/xbr/xbr-mlv4-dilation.json
Normal file
|
@ -0,0 +1,98 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR MultiLevel4 Shader + Dilation
|
||||
|
||||
Copyright (C) 2011-2015 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.
|
||||
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "xBR-mlv4 Multipass + Dilation",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "pass12",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass3",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"scale": 2,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass4",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"scale": 3,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1",
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "pass12"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass2",
|
||||
"name": "Pass 2",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass12" }
|
||||
],
|
||||
"output": "pass12"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass3",
|
||||
"name": "Pass 3",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass12" }
|
||||
],
|
||||
"output": "pass3"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass4",
|
||||
"name": "Pass 4",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass3" }
|
||||
],
|
||||
"output": "pass4"
|
||||
},
|
||||
{
|
||||
"effect": "warp/dilation-horizontal-fast",
|
||||
"name": "Horizontal Dilation",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass4" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
83
bgfx/chains/xbr/xbr-mlv4-multipass.json
Normal file
83
bgfx/chains/xbr/xbr-mlv4-multipass.json
Normal file
|
@ -0,0 +1,83 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR MultiLevel4 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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.
|
||||
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"name": "xBR-mlv4 Multipass",
|
||||
"author": "Hyllian",
|
||||
"targets": [
|
||||
{
|
||||
"name": "pass12",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"doublebuffer": true
|
||||
},
|
||||
{
|
||||
"name": "pass3",
|
||||
"mode": "guest",
|
||||
"bilinear": false,
|
||||
"scale": 2,
|
||||
"doublebuffer": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
],
|
||||
"output": "pass12"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass2",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass12" }
|
||||
],
|
||||
"output": "pass12"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass3",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass12" }
|
||||
],
|
||||
"output": "pass3"
|
||||
},
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass4",
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "target": "pass3" }
|
||||
],
|
||||
"output": "output"
|
||||
}
|
||||
]
|
||||
}
|
55
bgfx/effects/blurs/smart-blur.json
Normal file
55
bgfx/effects/blurs/smart-blur.json
Normal file
|
@ -0,0 +1,55 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian Smart-Blur Shader
|
||||
|
||||
Copyright (C) 2011-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/blurs/vs_smart-blur",
|
||||
"fragment": "chains/blurs/fs_smart-blur",
|
||||
"uniforms": [
|
||||
{ "name": "s_p", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "SB_THRESHOLD", "type": "vec4", "values": [ 0.2, 0.2, 0.2, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
|
@ -25,8 +25,8 @@
|
|||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/supereagle/vs_eagle",
|
||||
"fragment": "chains/supereagle/fs_eagle",
|
||||
"vertex": "chains/eagle/vs_eagle",
|
||||
"fragment": "chains/eagle/fs_eagle",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "LUT", "type": "int", "values": [ 1.0 ] },
|
|
@ -19,8 +19,8 @@
|
|||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/hq2x/vs_hq2x",
|
||||
"fragment": "chains/hq2x/fs_hq2x",
|
||||
"vertex": "chains/hqx/vs_hq2x",
|
||||
"fragment": "chains/hqx/fs_hq2x",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "LUT", "type": "int", "values": [ 1.0 ] },
|
|
@ -19,8 +19,8 @@
|
|||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/hq3x/vs_hq3x",
|
||||
"fragment": "chains/hq3x/fs_hq3x",
|
||||
"vertex": "chains/hqx/vs_hq3x",
|
||||
"fragment": "chains/hqx/fs_hq3x",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "LUT", "type": "int", "values": [ 1.0 ] },
|
|
@ -19,8 +19,8 @@
|
|||
"rgb": true,
|
||||
"alpha": true
|
||||
},
|
||||
"vertex": "chains/hq4x/vs_hq4x",
|
||||
"fragment": "chains/hq4x/fs_hq4x",
|
||||
"vertex": "chains/hqx/vs_hq4x",
|
||||
"fragment": "chains/hqx/fs_hq4x",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "LUT", "type": "int", "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/supereagle/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/supereagle/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 ]
|
||||
}
|
||||
]
|
||||
}
|
54
bgfx/effects/warp/dilation-horizontal-fast.json
Normal file
54
bgfx/effects/warp/dilation-horizontal-fast.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's dilation-horizontal-fast Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/warp/vs_dilation-horizontal-fast",
|
||||
"fragment": "chains/warp/fs_dilation-horizontal-fast",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-sharp.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-sharp.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.7c+ReverseAA (squared) Shader
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-sharp",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-sharp",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2-gamma.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2-gamma.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - beta1
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-v2-gamma",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v2-gamma",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - Dithering preserved
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-v2",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v2",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4-gamma.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4-gamma.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - beta3
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-v4-gamma",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4-gamma",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - v4
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-v4",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4b.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4b.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.8b+ReverseAA (semi-rounded) Shader - v4
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-v4b",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4b",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v5-gamma.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v5-gamma.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - beta3
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid-v5-gamma",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v5-gamma",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid.json
Normal file
35
bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid.json
Normal file
|
@ -0,0 +1,35 @@
|
|||
// license:GPL-2.0+
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's 2xBR v3.7c+ReverseAA (squared) Shader
|
||||
|
||||
Copyright (C) 2011/2012 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/xbr-hybrid/vs_2xbr-hybrid",
|
||||
"fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
56
bgfx/effects/xbr/xbr-lv1-noblend.json
Normal file
56
bgfx/effects/xbr/xbr-lv1-noblend.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv1-noblend Shader
|
||||
|
||||
Copyright (C) 2011-2014 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/vs_xbr-lv1-noblend",
|
||||
"fragment": "chains/xbr/fs_xbr-lv1-noblend",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 15.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
60
bgfx/effects/xbr/xbr-lv2-3d.json
Normal file
60
bgfx/effects/xbr/xbr-lv2-3d.json
Normal file
|
@ -0,0 +1,60 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2-3d Shader
|
||||
|
||||
Copyright (C) 2011/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/vs_xbr-lv2-3d",
|
||||
"fragment": "chains/xbr/fs_xbr-lv2-3d",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_SCALE", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 15.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV1_COEFFICIENT", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_RES", "type": "vec4", "values": [ 2.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/xbr-lv2-fast.json
Normal file
58
bgfx/effects/xbr/xbr-lv2-fast.json
Normal file
|
@ -0,0 +1,58 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2-lq Shader
|
||||
|
||||
Copyright (C) 2011/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/vs_xbr-lv2-fast",
|
||||
"fragment": "chains/xbr/fs_xbr-lv2-fast",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 25.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.json
Normal file
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 A (squared) - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv2-multipass/vs_xbr-lv2-a-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-a-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 Accuracy - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-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/xbr-lv2-multipass/vs_xbr-lv2-accuracy-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-accuracy-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
|
@ -0,0 +1,57 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 Accuracy - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-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/xbr-lv2-multipass/vs_xbr-lv2-accuracy-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-accuracy-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.json
Normal file
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 A (squared) - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv2-multipass/vs_xbr-lv2-b-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-b-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.json
Normal file
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 A (squared) - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv2-multipass/vs_xbr-lv2-c-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-c-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.json
Normal file
54
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 A (squared) - pass0 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv2-multipass/vs_xbr-lv2-d-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-d-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 - noblend - pass1 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv2-multipass/vs_xbr-lv2-noblend-pass1",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-noblend-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
57
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-pass1.json
Normal file
57
bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-pass1.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR LV2 - pass1 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv2-multipass/vs_xbr-lv2-pass1",
|
||||
"fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
56
bgfx/effects/xbr/xbr-lv2-noblend.json
Normal file
56
bgfx/effects/xbr/xbr-lv2-noblend.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2-noblend Shader
|
||||
|
||||
Copyright (C) 2011/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/vs_xbr-lv2-noblend",
|
||||
"fragment": "chains/xbr/fs_xbr-lv2-noblend",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.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/xbr-lv2.json
Normal file
58
bgfx/effects/xbr/xbr-lv2.json
Normal file
|
@ -0,0 +1,58 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv2 Shader
|
||||
|
||||
Copyright (C) 2011-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/vs_xbr-lv2",
|
||||
"fragment": "chains/xbr/fs_xbr-lv2",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 25.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass0.json
Normal file
54
bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass0.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR level 3 pass0 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv3-multipass/vs_xbr-lv3-pass0",
|
||||
"fragment": "chains/xbr/xbr-lv3-multipass/fs_xbr-lv3-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
57
bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass1.json
Normal file
57
bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass1.json
Normal file
|
@ -0,0 +1,57 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR level 3 pass1 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-lv3-multipass/vs_xbr-lv3-pass1",
|
||||
"fragment": "chains/xbr/xbr-lv3-multipass/fs_xbr-lv3-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
58
bgfx/effects/xbr/xbr-lv3-noblend.json
Normal file
58
bgfx/effects/xbr/xbr-lv3-noblend.json
Normal file
|
@ -0,0 +1,58 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv3-noblend - Shader
|
||||
|
||||
Copyright (C) 2011/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.
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"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/vs_xbr-lv3-noblend",
|
||||
"fragment": "chains/xbr/fs_xbr-lv3-noblend",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 10.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD2", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
62
bgfx/effects/xbr/xbr-lv3.json
Normal file
62
bgfx/effects/xbr/xbr-lv3.json
Normal file
|
@ -0,0 +1,62 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR-lv3 Shader
|
||||
|
||||
Copyright (C) 2011-2015 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.
|
||||
|
||||
Incorporates some of the ideas from SABR shader. Thanks to Joshua Street.
|
||||
*/
|
||||
|
||||
{
|
||||
"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/vs_xbr-lv3",
|
||||
"fragment": "chains/xbr/fs_xbr-lv3",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 10.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_EQ_THRESHOLD2", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass1.json
Normal file
54
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass1.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR MultiLevel4 Shader - Pass1
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-mlv4-multipass/vs_xbr-mlv4-pass1",
|
||||
"fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
54
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass2.json
Normal file
54
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass2.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR MultiLevel4 Shader - Pass2
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-mlv4-multipass/vs_xbr-mlv4-pass2",
|
||||
"fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass2",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
55
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass3.json
Normal file
55
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass3.json
Normal file
|
@ -0,0 +1,55 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR MultiLevel4 Shader - Pass3
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-mlv4-multipass/vs_xbr-mlv4-pass3",
|
||||
"fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass3",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
56
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass4.json
Normal file
56
bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass4.json
Normal file
|
@ -0,0 +1,56 @@
|
|||
// license:MIT
|
||||
// copyright-holders:Hyllian
|
||||
|
||||
/*
|
||||
Hyllian's xBR MultiLevel4 Shader - Pass4
|
||||
|
||||
Copyright (C) 2011-2015 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/xbr-mlv4-multipass/vs_xbr-mlv4-pass4",
|
||||
"fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass4",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_target_size", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
BIN
bgfx/shaders/dx11/chains/blurs/fs_smart-blur.bin
Normal file
BIN
bgfx/shaders/dx11/chains/blurs/fs_smart-blur.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/hqx/vs_hq4x.bin
Normal file
BIN
bgfx/shaders/dx11/chains/hqx/vs_hq4x.bin
Normal file
Binary file not shown.
Binary file not shown.
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/warp/fs_dilation-horizontal-fast.bin
Normal file
BIN
bgfx/shaders/dx11/chains/warp/fs_dilation-horizontal-fast.bin
Normal file
Binary file not shown.
BIN
bgfx/shaders/dx11/chains/warp/vs_dilation-horizontal-fast.bin
Normal file
BIN
bgfx/shaders/dx11/chains/warp/vs_dilation-horizontal-fast.bin
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 a new issue