mirror of
				https://github.com/AxioDL/metaforce.git
				synced 2025-10-27 15:30:23 +00:00 
			
		
		
		
	- Upload textures using staging buffer - Fixes SetOrtho logic - More work on thermal visor rendering (still WIP) - Rework Dawn backend initialization - Support MoltenVK on Metal - Various fixes & cleanup
		
			
				
	
	
		
			34 lines
		
	
	
		
			944 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			944 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include "Runtime/RetroTypes.hpp"
 | |
| #include "Runtime/Graphics/CTexture.hpp"
 | |
| 
 | |
| #include <zeus/CAABox.hpp>
 | |
| #include <zeus/CTransform.hpp>
 | |
| #include <zeus/CVector3f.hpp>
 | |
| 
 | |
| namespace metaforce {
 | |
| class CStateManager;
 | |
| 
 | |
| class CWorldShadow {
 | |
|   std::unique_ptr<CTexture> x0_texture;
 | |
|   zeus::CTransform x4_view;
 | |
|   zeus::CTransform x34_model;
 | |
|   float x64_objHalfExtent = 1.f;
 | |
|   zeus::CVector3f x68_objPos = {0.f, 1.f, 0.f};
 | |
|   zeus::CVector3f x74_lightPos;
 | |
|   TAreaId x80_aid = kInvalidAreaId;
 | |
|   s32 x84_lightIdx = -1;
 | |
|   bool x88_blurReset = true;
 | |
| 
 | |
| public:
 | |
|   CWorldShadow(u32 w, u32 h, bool rgba8);
 | |
|   void EnableModelProjectedShadow(const zeus::CTransform& pos, s32 lightIdx, float f1);
 | |
|   void DisableModelProjectedShadow();
 | |
|   void BuildLightShadowTexture(const CStateManager& mgr, TAreaId aid, s32 lightIdx, const zeus::CAABox& aabb,
 | |
|                                bool motionBlur, bool lighten);
 | |
|   void ResetBlur();
 | |
| };
 | |
| 
 | |
| } // namespace metaforce
 |