From 8894939577f1782b630039100746a361bba37242 Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Sat, 13 Jan 2018 21:20:32 +0100 Subject: [PATCH] add MinLOD MaxLOD and LODBias to Texture and its serializer as well as ShadowTextureMode None enum --- src/osgWrappers/serializers/osg/Texture.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/osgWrappers/serializers/osg/Texture.cpp b/src/osgWrappers/serializers/osg/Texture.cpp index 64bec3eeb..05c3bf8df 100644 --- a/src/osgWrappers/serializers/osg/Texture.cpp +++ b/src/osgWrappers/serializers/osg/Texture.cpp @@ -249,6 +249,7 @@ REGISTER_OBJECT_WRAPPER( Texture, ADD_ENUM_VALUE( LUMINANCE ); ADD_ENUM_VALUE( INTENSITY ); ADD_ENUM_VALUE( ALPHA ); + ADD_ENUM_VALUE( NONE ); END_ENUM_SERIALIZER(); // _shadow_texture_mode ADD_FLOAT_SERIALIZER( ShadowAmbient, 0.0f ); // _shadow_ambient @@ -265,4 +266,10 @@ REGISTER_OBJECT_WRAPPER( Texture, UPDATE_TO_VERSION_SCOPED( 98 ) ADD_USER_SERIALIZER( Swizzle ); // _swizzle } + { + UPDATE_TO_VERSION_SCOPED( 155 ) + ADD_FLOAT_SERIALIZER( MinLOD, 0.0f ); + ADD_FLOAT_SERIALIZER( MaxLOD, -1.0f ); + ADD_FLOAT_SERIALIZER( LODBias, 0.0f ); + } }