-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDynamicCubeMapping.h
More file actions
30 lines (25 loc) · 868 Bytes
/
DynamicCubeMapping.h
File metadata and controls
30 lines (25 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "Camera.h"
#include "Model.h"
#include "RenderModels.h"
class DynamicCubeMapping
{
public:
DynamicCubeMapping();
~DynamicCubeMapping();
bool BuildCubeFaceCameras(float x, float y, float z, Camera cubeCams[6]);
bool BuildCubeMapViews(ID3D11Device* device);
bool RenderDynamicCubeMapping(ID3D11Device* device, ID3D11DeviceContext* context,/* Particles* particles,
RenderParticles* particleRenderer,*/ RenderModels* modelRenderer,
const std::vector <Model*>& models, Camera* cubeCameras);
void ShutDown();
D3D11_VIEWPORT& GetViewPort();
ID3D11ShaderResourceView* GetCubeSRV();
private:
//ID3D11Texture2D* cubeTex;
ID3D11ShaderResourceView* cubeSRV;
ID3D11RenderTargetView* dynamicCubeMapRTV[6];
int cubeMapSize = 1024;
ID3D11DepthStencilView* dynamicCubeMapDSV;
D3D11_VIEWPORT cubeMapViewport;
};