summaryrefslogtreecommitdiffstats
path: root/src/extras/shaders/neoGloss_PS.hlsl
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-08-19 14:36:38 +0200
committerGitHub <noreply@github.com>2020-08-19 14:36:38 +0200
commit76fe1247c86873fa548c85ae8598efd4ce1947c2 (patch)
tree0d7d5e42a8e92841af0f89dc577eb0888831fd9f /src/extras/shaders/neoGloss_PS.hlsl
parentIsland loading cleanup and fix (diff)
parentMerge branch 'master' of github.com:gtamodding/re3 (diff)
downloadre3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar
re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.gz
re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.bz2
re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.lz
re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.xz
re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.tar.zst
re3-76fe1247c86873fa548c85ae8598efd4ce1947c2.zip
Diffstat (limited to '')
-rw-r--r--src/extras/shaders/neoGloss_PS.hlsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/extras/shaders/neoGloss_PS.hlsl b/src/extras/shaders/neoGloss_PS.hlsl
new file mode 100644
index 00000000..b3c97639
--- /dev/null
+++ b/src/extras/shaders/neoGloss_PS.hlsl
@@ -0,0 +1,20 @@
+sampler2D tex0 : register(s0);
+float glossMult : register(c1);
+
+struct VS_out
+{
+ float4 Position : POSITION;
+ float3 TexCoord0 : TEXCOORD0;
+ float3 Normal : COLOR0;
+ float3 Light : COLOR1;
+};
+
+float4 main(VS_out input) : COLOR
+{
+ float4 color = tex2D(tex0, input.TexCoord0.xy);
+ float3 n = 2.0*input.Normal-1.0; // unpack
+ float3 v = 2.0*input.Light-1.0; //
+
+ float s = dot(n, v);
+ return s*s*s*s*s*s*s*s*color*input.TexCoord0.z*glossMult;
+}