mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 12:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			524 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			524 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_RESOURCE_EXTRADATA_H
 | |
| #define OPENMW_COMPONENTS_RESOURCE_EXTRADATA_H
 | |
| 
 | |
| namespace osg
 | |
| {
 | |
|     class Node;
 | |
| }
 | |
| 
 | |
| namespace SceneUtil
 | |
| {
 | |
|     struct SoftEffectConfig
 | |
|     {
 | |
|         float mSize = 45.f;
 | |
|         float mFalloffDepth = 300.f;
 | |
|         bool mFalloff = false;
 | |
|     };
 | |
| 
 | |
|     struct DistortionConfig
 | |
|     {
 | |
|         float mStrength = 0.1f;
 | |
|     };
 | |
| 
 | |
|     void setupSoftEffect(osg::Node& node, const SoftEffectConfig& config);
 | |
|     void setupDistortion(osg::Node& node, const DistortionConfig& config);
 | |
| }
 | |
| 
 | |
| #endif
 |