summaryrefslogtreecommitdiff
path: root/scene/io/resource_format_image.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-06-25 19:43:29 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-06-25 19:43:29 -0300
commit71cc2561c63b2b2bc692e370acbc8bb57f031567 (patch)
tree74dc43652002883f15b0be3cc0b255714d7357b3 /scene/io/resource_format_image.cpp
parent29b2e811f6d775c07af68e466401aaf47314b679 (diff)
parentacb5cdb5744711beefc7d353aa51cb1d6b148c6a (diff)
Merge pull request #2187 from romulox-x/mirroredRepeat
added support for mirrored repeat texture wrapping
Diffstat (limited to 'scene/io/resource_format_image.cpp')
-rw-r--r--scene/io/resource_format_image.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/io/resource_format_image.cpp b/scene/io/resource_format_image.cpp
index 2663ac0762..8527498fc2 100644
--- a/scene/io/resource_format_image.cpp
+++ b/scene/io/resource_format_image.cpp
@@ -180,6 +180,11 @@ RES ResourceFormatLoaderImage::load(const String &p_path,const String& p_origina
if (flags_found["tolinear"])
flags|=Texture::FLAG_CONVERT_TO_LINEAR;
}
+
+ if (flags_found.has("mirroredrepeat")) {
+ if (flags_found["mirroredrepeat"])
+ flags|=Texture::FLAG_MIRRORED_REPEAT;
+ }
if (debug_load_times)
begtime=OS::get_singleton()->get_ticks_usec();