Skip to content

Commit e6ccf27

Browse files
committed
Align default wrap mode with shadertoy.com
1 parent 4f05b0d commit e6ccf27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bufferprovider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export class BufferProvider {
188188
LocalTexture: depFile,
189189
Mag: Types.TextureMagFilter.Linear,
190190
Min: Types.TextureMinFilter.Linear,
191-
Wrap: Types.TextureWrapMode.Clamp
191+
Wrap: Types.TextureWrapMode.Repeat
192192
});
193193
}
194194
else {
@@ -198,7 +198,7 @@ export class BufferProvider {
198198
RemoteTexture: depFile,
199199
Mag: Types.TextureMagFilter.Linear,
200200
Min: Types.TextureMinFilter.Linear,
201-
Wrap: Types.TextureWrapMode.Clamp
201+
Wrap: Types.TextureWrapMode.Repeat
202202
});
203203
}
204204
break;
@@ -239,7 +239,7 @@ export class BufferProvider {
239239
texture.MagLine = pendingSettings.MagLine;
240240
texture.Min = pendingSettings.Min || Types.TextureMinFilter.Linear;
241241
texture.MinLine = pendingSettings.MinLine;
242-
texture.Wrap = pendingSettings.Wrap || Types.TextureWrapMode.Clamp;
242+
texture.Wrap = pendingSettings.Wrap || Types.TextureWrapMode.Repeat;
243243
texture.WrapLine = pendingSettings.WrapLine;
244244
texture.Type = pendingSettings.Type || Types.TextureType.Texture2D;
245245
texture.TypeLine = pendingSettings.TypeLine;

0 commit comments

Comments
 (0)