mirror of
https://github.com/hedge-dev/XenosRecomp.git
synced 2025-12-18 05:52:27 +00:00
Check for NaN values in 2D weight function.
This commit is contained in:
parent
b7c0372246
commit
30f5986047
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ float4 tfetch2D(uint resourceDescriptorIndex, uint samplerDescriptorIndex, float
|
||||||
float2 getWeights2D(uint resourceDescriptorIndex, uint samplerDescriptorIndex, float2 texCoord, float2 offset)
|
float2 getWeights2D(uint resourceDescriptorIndex, uint samplerDescriptorIndex, float2 texCoord, float2 offset)
|
||||||
{
|
{
|
||||||
Texture2D<float4> texture = g_Texture2DDescriptorHeap[resourceDescriptorIndex];
|
Texture2D<float4> texture = g_Texture2DDescriptorHeap[resourceDescriptorIndex];
|
||||||
return frac(texCoord * getTexture2DDimensions(texture) + offset - 0.5);
|
return select(isnan(texCoord), 0.0, frac(texCoord * getTexture2DDimensions(texture) + offset - 0.5));
|
||||||
}
|
}
|
||||||
|
|
||||||
float w0(float a)
|
float w0(float a)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue