From 50ba7e114d0937061f988c9452904dd2456399b5 Mon Sep 17 00:00:00 2001 From: BlockMen Date: Mon, 28 Sep 2015 20:49:38 +0200 Subject: Add option to disable backface culling for models - Disabled by default (except players) - Fixes #2984 --- src/object_properties.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/object_properties.cpp') diff --git a/src/object_properties.cpp b/src/object_properties.cpp index f560f5934..dc1eddf4e 100644 --- a/src/object_properties.cpp +++ b/src/object_properties.cpp @@ -42,7 +42,8 @@ ObjectProperties::ObjectProperties(): automatic_rotate(0), stepheight(0), automatic_face_movement_dir(false), - automatic_face_movement_dir_offset(0.0) + automatic_face_movement_dir_offset(0.0), + backface_culling(true) { textures.push_back("unknown_object.png"); colors.push_back(video::SColor(255,255,255,255)); @@ -74,6 +75,7 @@ std::string ObjectProperties::dump() os<<", is_visible="<