Simplify include for shaders (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-05 08:55:49 +02:00
parent 2904597f18
commit 90ca7b2422
24 changed files with 24 additions and 24 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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);

View File

@ -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);

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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;

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{

View File

@ -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()
{