mirror of
https://github.com/holub/mame
synced 2025-07-03 00:56:03 +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
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Samplers
|
||||
SAMPLER2D(s_tex, 0);
|
||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
||||
// Color Convolution Effect
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// User-supplied
|
||||
uniform vec4 u_red_ratios;
|
||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0, v_texcoord1, v_texcoord2, v_texcoord3
|
||||
// Deconvergence Effect
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Samplers
|
||||
SAMPLER2D(s_tex, 0);
|
||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
||||
// Defocus Effect
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Autos
|
||||
uniform vec4 u_tex_size0;
|
||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
||||
// Distortion Effect
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Autos
|
||||
uniform vec4 u_swap_xy;
|
||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Samplers
|
||||
SAMPLER2D(s_tex, 0);
|
||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
||||
// NTSC Decode Effect
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Autos
|
||||
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
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Autos
|
||||
uniform vec4 u_source_dims;
|
||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// User-supplied
|
||||
uniform vec4 u_passthrough;
|
||||
|
@ -6,7 +6,7 @@ $input v_color0, v_texcoord0
|
||||
// Defocus Effect
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Autos
|
||||
uniform vec4 u_swap_xy;
|
||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Samplers
|
||||
SAMPLER2D(s_tex, 0);
|
||||
|
@ -3,7 +3,7 @@ $input v_color0, v_texcoord0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Samplers
|
||||
SAMPLER2D(s_tex, 0);
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_color0, v_texcoord0, v_texcoord1, v_texcoord2, v_texcoord3
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
// Autos
|
||||
uniform vec4 u_source_size;
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
@ -4,7 +4,7 @@ $output v_texcoord0, v_color0
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Dario Manesku
|
||||
|
||||
#include "../../../../../../3rdparty/bgfx/examples/common/common.sh"
|
||||
#include "common.sh"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user