#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 #include #include #include #include #include namespace Settings { struct WaterCategory : WithIndex { using WithIndex::WithIndex; SettingValue mShader{ mIndex, "Water", "shader" }; SettingValue mRttSize{ mIndex, "Water", "rtt size", makeMaxSanitizerInt(1) }; SettingValue mRefraction{ mIndex, "Water", "refraction" }; SettingValue mReflectionDetail{ mIndex, "Water", "reflection detail", makeEnumSanitizerInt({ 0, 1, 2, 3, 4, 5 }) }; SettingValue mRainRippleDetail{ mIndex, "Water", "rain ripple detail", makeEnumSanitizerInt({ 0, 1, 2 }) }; SettingValue mSmallFeatureCullingPixelSize{ mIndex, "Water", "small feature culling pixel size", makeMaxStrictSanitizerFloat(0) }; SettingValue mRefractionScale{ mIndex, "Water", "refraction scale", makeClampSanitizerFloat(0, 1) }; }; } #endif