Water Shader a finir dans le shader manager

This commit is contained in:
GolfOcean334
2024-04-11 11:02:48 +02:00
parent cf434ffca0
commit df9d3db5b1
11 changed files with 1442 additions and 7 deletions

View File

@@ -10,12 +10,10 @@
#include "d3dclass.h"
#include "cameraclass.h"
#include "object.h"
#include "lightshaderclass.h"
#include "lightclass.h"
#include <vector>
#include <filesystem>
#include "lightmapshaderclass.h"
#include "bitmapclass.h"
#include "spriteclass.h"
#include "timerclass.h"
@@ -31,6 +29,8 @@
#include "rendertextureclass.h"
#include "displayplaneclass.h"
#include "reflectionshaderclass.h"
#include "refractionshaderclass.h"
#include "watershaderclass.h"
/////////////
@@ -91,6 +91,8 @@ private:
bool UpdateFps();
bool UpdateRenderCountString(int);
bool RenderSceneToTexture(float);
bool RenderRefractionToTexture();
bool RenderReflectionToTexture();
private :
@@ -100,7 +102,7 @@ private :
D3DClass* m_Direct3D;
IDXGISwapChain* m_swapChain;
ModelClass* m_Model;
ModelClass* m_Model,* m_GroundModel, * m_WallModel, * m_BathModel, * m_WaterModel;
ModelListClass* m_ModelList;
// ------------------------------------- //
@@ -108,7 +110,7 @@ private :
// ------------------------------------- //
XMMATRIX m_baseViewMatrix;
RenderTextureClass* m_RenderTexture;
RenderTextureClass* m_RenderTexture, * m_RefractionTexture, * m_ReflectionTexture;
DisplayPlaneClass* m_DisplayPlane;
int m_screenWidth, m_screenHeight;
CameraClass* m_Camera;
@@ -138,12 +140,17 @@ private :
// ----------------------------------- //
ShaderManagerClass* m_ShaderManager;
WaterShaderClass* m_WaterShader;
FontShaderClass* m_FontShader;
ReflectionShaderClass* m_ReflectionShader;
BitmapClass* m_Bitmap;
SpriteClass* m_Sprite;
// ----------------------------------- //
// ------------ VARIABLES ------------ //
// ----------------------------------- //
float m_waterHeight, m_waterTranslation;
// ------------------------------------------------- //
// ------------- FPS AND INFO ON SCREEN ------------ //
// ------------------------------------------------- //