mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
Simplify include for shaders (nw)
This commit is contained in:
parent
2904597f18
commit
90ca7b2422
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Samplers
|
// Samplers
|
||||||
SAMPLER2D(s_tex, 0);
|
SAMPLER2D(s_tex, 0);
|
||||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
|||||||
// Color Convolution Effect
|
// Color Convolution Effect
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// User-supplied
|
// User-supplied
|
||||||
uniform vec4 u_red_ratios;
|
uniform vec4 u_red_ratios;
|
||||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0, v_texcoord1, v_texcoord2, v_texcoord3
|
|||||||
// Deconvergence Effect
|
// Deconvergence Effect
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Samplers
|
// Samplers
|
||||||
SAMPLER2D(s_tex, 0);
|
SAMPLER2D(s_tex, 0);
|
||||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
|||||||
// Defocus Effect
|
// Defocus Effect
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Autos
|
// Autos
|
||||||
uniform vec4 u_tex_size0;
|
uniform vec4 u_tex_size0;
|
||||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
|||||||
// Distortion Effect
|
// Distortion Effect
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Autos
|
// Autos
|
||||||
uniform vec4 u_swap_xy;
|
uniform vec4 u_swap_xy;
|
||||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Samplers
|
// Samplers
|
||||||
SAMPLER2D(s_tex, 0);
|
SAMPLER2D(s_tex, 0);
|
||||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
|||||||
// NTSC Decode Effect
|
// NTSC Decode Effect
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Autos
|
// Autos
|
||||||
uniform vec4 u_source_dims;
|
uniform vec4 u_source_dims;
|
||||||
|
@ -8,7 +8,7 @@ $input v_color0, v_texcoord0
|
|||||||
|
|
||||||
// NB: intentionally wasteful of uniforms in order for easier slider utilization
|
// NB: intentionally wasteful of uniforms in order for easier slider utilization
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Autos
|
// Autos
|
||||||
uniform vec4 u_source_dims;
|
uniform vec4 u_source_dims;
|
||||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// User-supplied
|
// User-supplied
|
||||||
uniform vec4 u_passthrough;
|
uniform vec4 u_passthrough;
|
||||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
|||||||
// Defocus Effect
|
// Defocus Effect
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Autos
|
// Autos
|
||||||
uniform vec4 u_swap_xy;
|
uniform vec4 u_swap_xy;
|
||||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Samplers
|
// Samplers
|
||||||
SAMPLER2D(s_tex, 0);
|
SAMPLER2D(s_tex, 0);
|
||||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Samplers
|
// Samplers
|
||||||
SAMPLER2D(s_tex, 0);
|
SAMPLER2D(s_tex, 0);
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_color0, v_texcoord0, v_texcoord1, v_texcoord2, v_texcoord3
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
// Autos
|
// Autos
|
||||||
uniform vec4 u_source_size;
|
uniform vec4 u_source_size;
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
|||||||
// license:BSD-3-Clause
|
// license:BSD-3-Clause
|
||||||
// copyright-holders:Dario Manesku
|
// copyright-holders:Dario Manesku
|
||||||
|
|
||||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
#include "common.sh"
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user