mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-05 01:40:44 +01:00
2ae2a551a6
GLES drivers adapted, but only did make compile-tests. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6038 dfc29bdd-3216-0410-991c-e03cc46cb475
66 lines
1.3 KiB
C++
66 lines
1.3 KiB
C++
// Copyright (C) 2014 Patryk Nadrowski
|
|
// This file is part of the "Irrlicht Engine".
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
#ifndef __C_OGLES2_PARALLAX_MAP_RENDERER_H_INCLUDED__
|
|
#define __C_OGLES2_PARALLAX_MAP_RENDERER_H_INCLUDED__
|
|
|
|
#include "IrrCompileConfig.h"
|
|
|
|
#ifdef _IRR_COMPILE_WITH_OGLES2_
|
|
|
|
#include "IMaterialRenderer.h"
|
|
#include "IShaderConstantSetCallBack.h"
|
|
|
|
#include "COGLES2Common.h"
|
|
|
|
namespace irr
|
|
{
|
|
namespace video
|
|
{
|
|
|
|
class COGLES2MaterialParallaxMapCB : public IShaderConstantSetCallBack
|
|
{
|
|
public:
|
|
COGLES2MaterialParallaxMapCB();
|
|
|
|
virtual void OnSetMaterial(const SMaterial& material);
|
|
virtual void OnSetConstants(IMaterialRendererServices* services, s32 userData);
|
|
|
|
protected:
|
|
bool FirstUpdate;
|
|
s32 WVPMatrixID;
|
|
s32 WVMatrixID;
|
|
s32 EyePositionID;
|
|
s32 LightPositionID;
|
|
s32 LightColorID;
|
|
s32 FactorID;
|
|
s32 TextureUnit0ID;
|
|
s32 TextureUnit1ID;
|
|
s32 FogEnableID;
|
|
s32 FogTypeID;
|
|
s32 FogColorID;
|
|
s32 FogStartID;
|
|
s32 FogEndID;
|
|
s32 FogDensityID;
|
|
|
|
core::vector3df LightPosition[2];
|
|
SColorf LightColor[2];
|
|
f32 Factor;
|
|
s32 TextureUnit0;
|
|
s32 TextureUnit1;
|
|
s32 FogEnable;
|
|
s32 FogType;
|
|
SColorf FogColor;
|
|
f32 FogStart;
|
|
f32 FogEnd;
|
|
f32 FogDensity;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|
|
#endif
|
|
|