mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add texture bumpmapping feature.
This commit is contained in:
@@ -804,6 +804,10 @@ public:
|
||||
u32 daynight_ratio = m_client->getEnv().getDayNightRatio();
|
||||
float daynight_ratio_f = (float)daynight_ratio / 1000.0;
|
||||
services->setPixelShaderConstant("dayNightRatio", &daynight_ratio_f, 1);
|
||||
|
||||
// Normal map texture layer
|
||||
int layer = 1;
|
||||
services->setPixelShaderConstant("normalTexture" , (irr::f32*)&layer, 1);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user