raSystem  1.0 bata
raGPUHeightmap.h
Go to the documentation of this file.
1 #pragma once
2 
4  {
5  public:
6  raGPUHeightmap(raDirectX *dx, int width, int depth, raMaterial *mat, float tileSize = 1.0f);
7 
8  private:
9  virtual float h(float x, float z); // w = Pixel Format ( 1024 x 1024 )
10  virtual raVector3 normal(float x, float z); // Normale
11  };
12 
13  //----------------------------------
15  {
16  public:
17  raGPUHeightmapMaterial(raDirectX *dx, LPCSTR effectFile = "raEffects\\HeightmapEffect.fx",
18  LPCSTR techniqueName = "RenderWithHeightMapAndBumpMap",
19  LPCSTR texture = "raGrafik\\Forest Flood.jpg",
20  LPCSTR heightmap = "raGrafik\\Heightmap.dds",
21  LPCSTR heightmapBump = "raGrafik\\HeightmapNormals.dds");
22 
23  virtual bool Create();
24  virtual bool Destroy();
25  virtual void Setup();
26 
27  protected:
30 
31  ID3D11ShaderResourceView* m_pRVHeight;
32  ID3D11ShaderResourceView* m_pRVBump;
33 
36  };
#define RAPI
Definition: raMain.h:11
ID3D11ShaderResourceView * m_pRVBump
ID3DX11EffectShaderResourceVariable * m_ptxBumpMap
ID3D11ShaderResourceView * m_pRVHeight
ID3DX11EffectShaderResourceVariable * m_ptxHeight
interface ID3DX11EffectShaderResourceVariable ID3DX11EffectShaderResourceVariable
Definition: d3dx11effect.h:283