mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 17:15:21 +02:00
Reduce size of SMaterial struct
This commit is contained in:
@@ -253,7 +253,7 @@ void CAnimatedMeshSceneNode::render()
|
||||
// for debug purposes only:
|
||||
if (DebugDataVisible && PassCount == 1) {
|
||||
video::SMaterial debug_mat;
|
||||
debug_mat.AntiAliasing = 0;
|
||||
debug_mat.AntiAliasing = video::EAAM_OFF;
|
||||
driver->setMaterial(debug_mat);
|
||||
// show normals
|
||||
if (DebugDataVisible & scene::EDS_NORMALS) {
|
||||
|
@@ -109,7 +109,7 @@ void CMeshSceneNode::render()
|
||||
// for debug purposes only:
|
||||
if (DebugDataVisible && PassCount == 1) {
|
||||
video::SMaterial m;
|
||||
m.AntiAliasing = 0;
|
||||
m.AntiAliasing = video::EAAM_OFF;
|
||||
m.ZBuffer = video::ECFN_DISABLED;
|
||||
driver->setMaterial(m);
|
||||
|
||||
|
@@ -1311,7 +1311,7 @@ void CNullDriver::runOcclusionQuery(scene::ISceneNode *node, bool visible)
|
||||
OcclusionQueries[index].Run = 0;
|
||||
if (!visible) {
|
||||
SMaterial mat;
|
||||
mat.AntiAliasing = 0;
|
||||
mat.AntiAliasing = video::EAAM_OFF;
|
||||
mat.ColorMask = ECP_NONE;
|
||||
mat.ZWriteEnable = EZW_OFF;
|
||||
setMaterial(mat);
|
||||
|
Reference in New Issue
Block a user