Hello, I get a warning when comiling my project. The project works as intended but would be nice to resolve the warning.
It says:
warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
for each of these lines
DirectX::XMMATRIX rotationMatrix = DirectX::XMMatrixRotationY(0.5f*DirectX::XM_PI);
Eye = DirectX::XMVectorSet( x, 3.0f, z, 0.0f );
At = DirectX::XMVectorSet( x + sin(CameraRotationHorizontal), 3.0f,z + cos(CameraRotationHorizontal), 0.0f );
they are declared as the following types
DirectX::XMVECTOR Eye;
DirectX::XMVECTOR At;
DirectX::XMMATRIX rotationMatrix
How do I solve these? They're all predefined types from the DirectX API with their assosciated functions, not sure what i can do here.