1 2 3 4 5 6 7 8 9 10 11 | int32 X = (int32)tX; int32 Y = (int32)tY; real32 fX = tX - (real32)X; real32 fY = tY - (real32)Y; Assert((X >= 0) && (X < Texture->Width)); Assert((Y >= 0) && (Y < Texture->Height)); bilinear_sample TexelSample = BilinearSample(Texture, X, Y); v4 Texel = SRGBBilinearBlend(TexelSample, fX, fY); |
This causes a compiler error.
I haven't watched the videos either, so I don't actually know which "X" and "Y" the code surrounding is supposed to be using. My guess is the inner defined ones.
Anyhow, might want to clean that up.