mirror of
https://github.com/minetest/minetest.git
synced 2024-12-17 19:55:41 +01:00
Set fixed FOV for the wielded item
This commit is contained in:
parent
1bbfd0b6d2
commit
7d36833bd4
@ -504,7 +504,7 @@ void Camera::drawWieldedTool()
|
|||||||
// Draw the wielded node (in a separate scene manager)
|
// Draw the wielded node (in a separate scene manager)
|
||||||
scene::ICameraSceneNode* cam = m_wieldmgr->getActiveCamera();
|
scene::ICameraSceneNode* cam = m_wieldmgr->getActiveCamera();
|
||||||
cam->setAspectRatio(m_cameranode->getAspectRatio());
|
cam->setAspectRatio(m_cameranode->getAspectRatio());
|
||||||
cam->setFOV(m_cameranode->getFOV());
|
cam->setFOV(72.0*PI/180.0);
|
||||||
cam->setNearValue(0.1);
|
cam->setNearValue(0.1);
|
||||||
cam->setFarValue(100);
|
cam->setFarValue(100);
|
||||||
m_wieldmgr->drawAll();
|
m_wieldmgr->drawAll();
|
||||||
|
Loading…
Reference in New Issue
Block a user