28#ifndef HPL_MATERIAL_FALLBACK02_BASE_LIGHT_H
29#define HPL_MATERIAL_FALLBACK02_BASE_LIGHT_H
31#include "hpl1/engine/graphics/Material.h"
32#include "hpl1/engine/scene/Light3D.h"
34#include "hpl1/engine/graphics/Material_BaseLight.h"
46 eMaterialPicture aPicture,
cRenderer3D *apRenderer3D);
52 bool UsesType(eMaterialRenderType aType);
54 iGpuProgram *getGpuProgram(
const eMaterialRenderType aType,
const int alPass,
iLight3D *apLight);
57 bool VertexProgramUsesLight(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
58 bool VertexProgramUsesEye(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
60 eMaterialAlphaMode GetAlphaMode(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
61 eMaterialBlendMode GetBlendMode(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
62 eMaterialChannelMode GetChannelMode(eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
64 iTexture *GetTexture(
int alUnit, eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
65 eMaterialBlendMode GetTextureBlend(
int alUnit, eMaterialRenderType aType,
int alPass,
iLight3D *apLight);
67 int GetNumOfPasses(eMaterialRenderType aType,
iLight3D *apLight);
75 bool NextPass(eMaterialRenderType aType) {
return false; }
77 eMaterialType
GetType(eMaterialRenderType aType) {
return eMaterialType_Diffuse; }
78 void EditVertexes(eMaterialRenderType aType,
iCamera *apCam,
iLight *pLight,
82 iTexture *mpNormalizationMap;
83 iTexture *mpSpotNegativeRejectMap;
85 iTexture *mpAttenuationMap;
87 iGpuProgram *_gpuPrograms[eBaseLightProgram_LastEnum];
88 iGpuProgram *_diffuseGpuProgram;
89 iGpuProgram *_ambientGpuProgram;
103 eMaterialPicture aPicture,
cRenderer3D *apRenderer3D)
105 asName, apLowLevelGraphics, apImageManager, apTextureManager, apRenderer, apProgramManager,
106 aPicture, apRenderer3D) {
Definition: GpuProgramManager.h:39
Definition: ImageManager.h:48
Definition: Material_Fallback02_BaseLight.h:98
Definition: Renderer2D.h:79
Definition: Renderer3D.h:139
Definition: TextureManager.h:47
Definition: GPUProgram.h:62
Definition: Light3D.h:117
Definition: LowLevelGraphics.h:200
Definition: Material_Fallback02_BaseLight.h:40
bool NextPass(eMaterialRenderType aType)
Definition: Material_Fallback02_BaseLight.h:75
bool HasMultiplePasses(eMaterialRenderType aType)
Definition: Material_Fallback02_BaseLight.h:76
bool StartRendering(eMaterialRenderType aType, iCamera *apCam, iLight *pLight)
Definition: Material_Fallback02_BaseLight.h:72
tVtxBatchFlag GetBatchFlags(eMaterialRenderType aType)
Definition: Material_Fallback02_BaseLight.h:74
eMaterialType GetType(eMaterialRenderType aType)
Definition: Material_Fallback02_BaseLight.h:77
void EndRendering(eMaterialRenderType aType)
Definition: Material_Fallback02_BaseLight.h:73
Definition: Material.h:203
Definition: Material.h:181