mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
#ifndef OPENMW_COMPONENTS_SETTINGS_CATEGORIES_WATER_H
|
|
#define OPENMW_COMPONENTS_SETTINGS_CATEGORIES_WATER_H
|
|
|
|
#include <components/settings/sanitizerimpl.hpp>
|
|
#include <components/settings/settingvalue.hpp>
|
|
|
|
#include <osg/Math>
|
|
#include <osg/Vec2f>
|
|
#include <osg/Vec3f>
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
namespace Settings
|
|
{
|
|
struct WaterCategory : WithIndex
|
|
{
|
|
using WithIndex::WithIndex;
|
|
|
|
SettingValue<bool> mShader{ mIndex, "Water", "shader" };
|
|
SettingValue<int> mRttSize{ mIndex, "Water", "rtt size", makeMaxSanitizerInt(1) };
|
|
SettingValue<bool> mRefraction{ mIndex, "Water", "refraction" };
|
|
SettingValue<int> mReflectionDetail{ mIndex, "Water", "reflection detail", makeClampSanitizerInt(0, 5) };
|
|
SettingValue<int> mRainRippleDetail{ mIndex, "Water", "rain ripple detail", makeClampSanitizerInt(0, 2) };
|
|
SettingValue<float> mSmallFeatureCullingPixelSize{ mIndex, "Water", "small feature culling pixel size",
|
|
makeMaxStrictSanitizerFloat(0) };
|
|
SettingValue<float> mRefractionScale{ mIndex, "Water", "refraction scale", makeClampSanitizerFloat(0, 1) };
|
|
SettingValue<bool> mSunlightScattering{ mIndex, "Water", "sunlight scattering" };
|
|
SettingValue<bool> mWobblyShores{ mIndex, "Water", "wobbly shores" };
|
|
};
|
|
}
|
|
|
|
#endif
|