1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 06:53:53 +00:00

setting for field of view

This commit is contained in:
scrawl 2012-04-02 17:51:51 +02:00
parent 5f2a674d93
commit 39ee9e9ab8
2 changed files with 5 additions and 5 deletions

View file

@ -23,7 +23,7 @@ namespace MWRender {
RenderingManager::RenderingManager (OEngine::Render::OgreRenderer& _rend, const boost::filesystem::path& resDir, OEngine::Physic::PhysicEngine* engine, MWWorld::Environment& environment) RenderingManager::RenderingManager (OEngine::Render::OgreRenderer& _rend, const boost::filesystem::path& resDir, OEngine::Physic::PhysicEngine* engine, MWWorld::Environment& environment)
:mRendering(_rend), mObjects(mRendering), mActors(mRendering, environment), mAmbientMode(0) :mRendering(_rend), mObjects(mRendering), mActors(mRendering, environment), mAmbientMode(0)
{ {
mRendering.createScene("PlayerCam", 55, 5); mRendering.createScene("PlayerCam", Settings::Manager::getFloat("fieldofview", "General"), 5);
mTerrainManager = new TerrainManager(mRendering.getScene(), mTerrainManager = new TerrainManager(mRendering.getScene(),
environment); environment);

View file

@ -1,5 +1,8 @@
[HUD] [General]
# Camera field of view
fieldofview = 55
[HUD]
# FPS counter # FPS counter
# 0: not visible # 0: not visible
# 1: basic FPS display # 1: basic FPS display
@ -7,7 +10,6 @@
fps = 0 fps = 0
[Objects] [Objects]
shaders = true shaders = true
# Max. number of lights that affect objects. Setting to 1 will only reflect sunlight # Max. number of lights that affect objects. Setting to 1 will only reflect sunlight
@ -18,7 +20,6 @@ num lights = 8
use static geometry = true use static geometry = true
[Viewing distance] [Viewing distance]
# Limit the rendering distance of small objects # Limit the rendering distance of small objects
limit small object distance = false limit small object distance = false
@ -38,6 +39,5 @@ fog start factor = 0.5
fog end factor = 1.0 fog end factor = 1.0
[Terrain] [Terrain]
# Max. number of lights that affect the terrain. Setting to 1 will only reflect sunlight # Max. number of lights that affect the terrain. Setting to 1 will only reflect sunlight
num lights = 8 num lights = 8