Просмотр исходного кода

obs-filters: Make crop shader wrap texture

This is mostly so that it can be used with the scroll filter, which uses
identical shaders, but needs to wrap the texture instead of clamp.
jp9000 10 лет назад
Родитель
Сommit
eab60e04d9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      plugins/obs-filters/data/crop_filter.effect

+ 2 - 2
plugins/obs-filters/data/crop_filter.effect

@@ -6,8 +6,8 @@ uniform float2 add_val;
 
 sampler_state textureSampler {
 	Filter    = Linear;
-	AddressU  = Clamp;
-	AddressV  = Clamp;
+	AddressU  = Wrap;
+	AddressV  = Wrap;
 };
 
 struct VertData {