Minor update - Skybox baby

Faudra mettre une texture numéroté pour la skybox afin de verifié l'orientation des plan qui la constitue
This commit is contained in:
2025-01-21 17:43:02 +01:00
parent 172db0b96d
commit 261df5e257
11 changed files with 220 additions and 44 deletions

View File

@@ -146,8 +146,9 @@ private:
bool RenderReflectionToTexture();
bool RenderPass(const std::vector<std::reference_wrapper<std::vector<Object*>>>& RenderQueues, XMFLOAT4* diffuse, XMFLOAT4* position, XMFLOAT4* ambient, XMMATRIX view, XMMATRIX projection);
bool LoadSkyboxTextures();
void ConstructSkybox();
void ConstructSkybox(); // Construct the skybox
void UpdateSkyboxPosition(); // Update the skybox position
bool RenderSkybox(XMMATRIX view, XMMATRIX projection); // Render the skybox
public :
std::vector<ID3D11ShaderResourceView*> textures;
@@ -178,6 +179,7 @@ private :
int m_screenWidth, m_screenHeight;
CameraClass* m_Camera;
PositionClass* m_Position;
std::vector<XMMATRIX> m_SkyboxInitialTranslations;
// ------------------------------------ //
// ------------- OBJECTS -------------- //