1 #include "..\include\raMain.h" 6 "raEffects\\NoNormals.fx",
"RenderWithTexture", textureFileName), true)
15 D3DXMatrixInverse((D3DXMATRIX*)&worldTmp, NULL, (D3DXMATRIX*)&pView);
20 worldTmp = ms * worldTmp;
27 raMatrix mWorldView, mWorldViewProjection;
28 mWorldView = worldTmp * pView;
29 mWorldViewProjection = mWorldView * pProj;
34 mWorldViewProjection);
40 "raEffects\\MyEngine.fx",
41 "RenderWithTexture", textureFileName), true)
50 D3DXMatrixInverse((D3DXMATRIX*)&worldTmp, NULL, (D3DXMATRIX*)&pView);
55 worldTmp = ms * worldTmp;
59 float zf = pProj.
m43/ (1 - pProj.
m33) ;
60 float scale = 0.04f * zf;
69 raMatrix mWorldView, mWorldViewProjection;
70 mWorldView = worldTmp * pView;
71 mWorldViewProjection = mWorldView * pProj;
94 mWorldViewProjection);
104 "raEffects\\MyEngine.fx",
105 "RenderWithTextureCenterScreen", textureFileName), true)
virtual void SetupPerFrame(const raLight *Light, const raMatrix *pView=NULL, const raMatrix *pProj=NULL)
raBillboard(raSmartPointer< raDirectX >, LPCSTR textureFileName, bool bAdditive=false)
RAPI raMatrix raMatrixScaling(const raVector3 &v)
raHimmelkoerper(raSmartPointer< raDirectX >, LPCSTR textureFileName, bool bAdditive=false)
raCrosshair(raSmartPointer< raDirectX >, LPCSTR textureFileName, bool bAdditive=false)
raMaterial ** m_pMaterials
virtual void SetupPerObject(const raMatrix &mWorld, const raMatrix &mWorldView, const raMatrix &mWorldViewProjection)
virtual void SetupEffectVariables(const raMatrix &pView, const raMatrix &pProj, const raLight *pLight)
virtual void SetupEffectVariables(const raMatrix &pView, const raMatrix &pProj, const raLight *pLight)