Skip to content

Commit ca51215

Browse files
authored
Examples: Clean up. (#30979)
Seems like the sampling modes should be 'flat first' and 'flat either' instead of 'first' and 'either'
1 parent 7fe67ee commit ca51215

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/webgpu_centroid_sampling.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@
158158

159159
};
160160

161-
const withFlatFirstShader = createShader( 'flat', 'first' );
162-
const withFlatEitherShader = createShader( 'flat', 'either' );
161+
const withFlatFirstShader = createShader( THREE.InterpolationSamplingType.FLAT, THREE.InterpolationSamplingMode.FLAT_FIRST );
162+
const withFlatEitherShader = createShader( THREE.InterpolationSamplingType.FLAT, THREE.InterpolationSamplingMode.FLAT_EITHER );
163163

164164
const withSampleShader = Fn( () => {
165165

@@ -287,4 +287,4 @@
287287

288288
</script>
289289
</body>
290-
</html>
290+
</html>

0 commit comments

Comments
 (0)