fix compile errir

This commit is contained in:
Michele 2021-01-15 12:31:24 +00:00
parent c3f4e7cd70
commit e7bcd197df

View file

@ -34,7 +34,7 @@ float4 MainPS(VertexShaderOutput input) : COLOR
float2 pixel = (int2)input.TextureCoordinates * ImageSize;
float2 offsets[8] = {float2(-1,0), float2(1,0), float2(0,1), float2(0,-1), float2(-1,1), float2(1,1), float2(1,-1), float2(-1,-1)} * BorderSize;
float2 offsets[8] = {float2(-1,0), float2(1,0), float2(0,1), float2(0,-1), float2(-1,1), float2(1,1), float2(1,-1), float2(-1,-1)};
float2 checkp1 = pixel + (float)BorderSize * offsets[0];
float2 curUV1 = input.TextureCoordinates + checkp1/(float2)ImageSize;