Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
57 lines
1.5 KiB
C++
57 lines
1.5 KiB
C++
// SkyScene.h: interface for the CSkyScene class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_SKYSCENE_H__B949810B_EC65_46A5_B49C_99EC7C2B3D05__INCLUDED_)
|
|
#define AFX_SKYSCENE_H__B949810B_EC65_46A5_B49C_99EC7C2B3D05__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "SceneNode.h"
|
|
#include "Texture.h"
|
|
#include <Vertex.h>
|
|
#include "SectorDefine.h"
|
|
#include "StateLog.h"
|
|
|
|
const float SKYSIZE=500000;
|
|
const long SKYDIVIDE=10;
|
|
const long SKYVERTEX=SKYDIVIDE+2;
|
|
|
|
const long STARVERTEX=200;
|
|
|
|
const int LIGHTLAYER = 3;
|
|
|
|
class CSkyScene : public CSceneNode
|
|
{
|
|
//D3DLVERTEX m_skymesh[SKYVERTEX];
|
|
CTexture m_SkyTexture[5];
|
|
LVertex m_SkyVertex[SKYVERTEX];
|
|
LVertex m_CloudVertex[MAX_CLOUD][SKYVERTEX];
|
|
LVertex m_StarVertex[STARVERTEX];
|
|
//LVertex m_SkyBoxVertex[
|
|
//color m_FogLayer[MAX_CLOUD];
|
|
float m_fFogLayerHeight[MAX_CLOUD];
|
|
|
|
///// µ¿±â Rain °ü·Ã /////
|
|
int m_iRenderLightLayer[3];
|
|
LVertex m_LightLayerVertex[LIGHTLAYER][SKYVERTEX];
|
|
|
|
public:
|
|
void RenderForGlare(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
void Update(float fUpdate);
|
|
static CTexture m_CloudTexture;
|
|
//// µ¿±â Ãß°¡////
|
|
static CTexture m_LightLayerTexture[LIGHTLAYER];
|
|
void RenderCloud(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
void RenderSkyBox(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
void SetColor(DWORD dwColor,DWORD dwCenterColor,DWORD *dwLayerColor);
|
|
void Render(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
void Create();
|
|
CSkyScene();
|
|
virtual ~CSkyScene();
|
|
};
|
|
|
|
#endif // !defined(AFX_SKYSCENE_H__B949810B_EC65_46A5_B49C_99EC7C2B3D05__INCLUDED_)
|