mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
16 lines
409 B
Plaintext
16 lines
409 B
Plaintext
sampler RT : register(s0);
|
|
sampler NormalMap : register(s1);
|
|
sampler CausticMap : register(s2);
|
|
|
|
float4 main_ps(float2 iTexCoord : TEXCOORD0,
|
|
float3 noiseCoord : TEXCOORD1,
|
|
uniform float4 tintColour) : COLOR
|
|
{
|
|
float4 normal = tex2D(NormalMap, noiseCoord);
|
|
|
|
|
|
return tex2D(RT, iTexCoord + normal.xy * 0.05) +
|
|
(tex2D(CausticMap, noiseCoord) / 5) +
|
|
tintColour ;
|
|
}
|