- There is a SVACE issue that 'The result of integral division converted into
floating point at atlas-mesh-factory.cpp:86'.
- However, we have purposely made the value as we do not want the remainder in that
expression to affect the value of fBlockY.
Change-Id: If4a12a7ba6d439e3d8c412a6879214d32e464561
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
Vector2 topLeft = Vector2( position.x - 0.5f, position.y - 0.5f );
float fBlockX = texelBlockWidth * static_cast< float >( block % atlasWidthInBlocks );
+
+ // In the next expression, we have purposely made ( block / atlasWidthInBlocks ) yield an integer value and then convert to float as
+ // we do not want the remainder in that expression to affect the value of fBlockY
float fBlockY = texelBlockHeight * static_cast< float >( block / atlasWidthInBlocks );
// Add on texture filtering compensation ( half a texel plus compensation for filled pixel in top left corner )