We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41fc91 commit f33136cCopy full SHA for f33136c
libs/soba/misc/src/lib/sampler.ts
@@ -65,7 +65,7 @@ export function injectSurfaceSampler(
65
return new InstancedBufferAttribute(Float32Array.from(arr), 16);
66
})();
67
68
- const buffer = computed(() => {
+ return computed(() => {
69
const currentMesh = resolveRef(mesh());
70
if (!currentMesh) return initialBufferAttribute;
71
@@ -126,12 +126,6 @@ export function injectSurfaceSampler(
126
initialBufferAttribute,
127
);
128
});
129
-
130
- return computed(() => {
131
- const _buffer = buffer();
132
- if (!_buffer) return initialBufferAttribute;
133
- return _buffer;
134
- });
135
136
}
137
0 commit comments