1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Use tangent space meshes only when shaders are enabled

This commit is contained in:
RealBadAngel 2016-02-06 05:49:12 +01:00 committed by paramat
parent 0e75eb4324
commit bf884e37a0
2 changed files with 14 additions and 11 deletions

View file

@ -104,7 +104,7 @@ public:
// Returns true if anything has been changed.
bool animate(bool faraway, float time, int crack, u32 daynight_ratio);
scene::SMesh *getMesh()
scene::IMesh *getMesh()
{
return m_mesh;
}
@ -130,7 +130,7 @@ public:
void updateCameraOffset(v3s16 camera_offset);
private:
scene::SMesh *m_mesh;
scene::IMesh *m_mesh;
MinimapMapblock *m_minimap_mapblock;
IGameDef *m_gamedef;
ITextureSource *m_tsrc;
@ -177,7 +177,7 @@ struct PreMeshBuffer
{
TileSpec tile;
std::vector<u16> indices;
std::vector<video::S3DVertexTangents> vertices;
std::vector<video::S3DVertex> vertices;
};
struct MeshCollector