/usr/share/libwildmagic/Data/CgShaders/BoundaryNeumann.fx is in libwildmagic-common 5.13-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | sampler2D OffsetSampler = sampler_state
{
MinFilter = Nearest;
MagFilter = Nearest;
WrapS = Clamp;
WrapT = Clamp;
};
sampler2D StateSampler = sampler_state
{
MinFilter = Nearest;
MagFilter = Nearest;
WrapS = Clamp;
WrapT = Clamp;
};
void p_BoundaryNeumann
(
in float2 vertexTCoord : TEXCOORD0,
out float4 pixelColor : COLOR
)
{
float2 offset = tex2D(OffsetSampler, vertexTCoord).xy;
float2 tc = float2(vertexTCoord.x + offset.x, vertexTCoord.y + offset.y);
float4 state = tex2D(StateSampler, tc);
pixelColor = state;
}
|