mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 18:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			1.2 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) };
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |