We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c273f38 commit 2067567Copy full SHA for 2067567
src/uniforms/utils.js
@@ -1,3 +1,5 @@
1
+// reduce the set of textures to just those with a unique source while retaining
2
+// the order of the textures.
3
export function reduceTexturesToUniqueSources( textures ) {
4
5
const sourceSet = new Set();
@@ -7,6 +9,7 @@ export function reduceTexturesToUniqueSources( textures ) {
7
9
const tex = textures[ i ];
8
10
if ( ! sourceSet.has( tex.source ) ) {
11
12
+ sourceSet.add( tex.source );
13
result.push( tex );
14
15
}
0 commit comments