mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 02:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			1.3 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 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
 |