Browse Source

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 năm trước cách đây
mục cha
commit
eab60e04d9

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

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