mirror of https://github.com/PCSX2/pcsx2.git
glsl: move shader into a separate directory
Only keep glsl_source.h for clarity
This commit is contained in:
parent
55fdf26898
commit
16e6d0d305
|
@ -37,14 +37,17 @@ eval {
|
||||||
########################
|
########################
|
||||||
# GSdx
|
# GSdx
|
||||||
########################
|
########################
|
||||||
my @gsdx_res = qw/convert.glsl interlace.glsl merge.glsl shadeboost.glsl tfx_vgs.glsl tfx_fs_all.glsl fxaa.fx/;
|
|
||||||
my $gsdx_path = File::Spec->catdir(dirname(abs_path($0)), "..", "plugins", "GSdx", "res");
|
my $gsdx_path = File::Spec->catdir(dirname(abs_path($0)), "..", "plugins", "GSdx", "res");
|
||||||
|
my $gsdx_out = File::Spec->catdir($gsdx_path, "glsl_source.h");
|
||||||
|
|
||||||
# Just a hack to reuse glsl2h function easily
|
# Just a hack to reuse glsl2h function easily
|
||||||
|
$gsdx_path = File::Spec->catdir(dirname(abs_path($0)), "..", "plugins", "GSdx", "res", "glsl");
|
||||||
my @tfx_res = qw/tfx_fs.glsl tfx_fs_subroutine.glsl/;
|
my @tfx_res = qw/tfx_fs.glsl tfx_fs_subroutine.glsl/;
|
||||||
my $tfx_all = File::Spec->catdir($gsdx_path, "tfx_fs_all.glsl");
|
my $tfx_all = File::Spec->catdir($gsdx_path, "tfx_fs_all.glsl");
|
||||||
|
|
||||||
|
my @gsdx_res = qw/convert.glsl interlace.glsl merge.glsl shadeboost.glsl tfx_vgs.glsl tfx_fs_all.glsl fxaa.fx/;
|
||||||
concat($gsdx_path, $tfx_all, \@tfx_res);
|
concat($gsdx_path, $tfx_all, \@tfx_res);
|
||||||
|
|
||||||
my $gsdx_out = File::Spec->catdir($gsdx_path, "glsl_source.h");
|
|
||||||
glsl2h($gsdx_path, $gsdx_out, \@gsdx_res);
|
glsl2h($gsdx_path, $gsdx_out, \@gsdx_res);
|
||||||
|
|
||||||
unlink $tfx_all;
|
unlink $tfx_all;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
../fxaa.fx
|
Loading…
Reference in New Issue