mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Use tangent space meshes only when shaders are enabled
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user