ソースを参照

Examples: Clean up. (#30979)

Seems like the sampling modes should be 'flat first' and 'flat either' instead of 'first' and 'either'
Nathan Bierema 1 年間 前
コミット
ca51215464
1 ファイル変更3 行追加3 行削除
  1. 3 3
      examples/webgpu_centroid_sampling.html

+ 3 - 3
examples/webgpu_centroid_sampling.html

@@ -158,8 +158,8 @@
 
 				};
 
-				const withFlatFirstShader = createShader( 'flat', 'first' );
-				const withFlatEitherShader = createShader( 'flat', 'either' );
+				const withFlatFirstShader = createShader( THREE.InterpolationSamplingType.FLAT, THREE.InterpolationSamplingMode.FLAT_FIRST );
+				const withFlatEitherShader = createShader( THREE.InterpolationSamplingType.FLAT, THREE.InterpolationSamplingMode.FLAT_EITHER );
 
 				const withSampleShader = Fn( () => {
 
@@ -287,4 +287,4 @@
 
 		</script>
 	</body>
-</html>
+</html>

粤ICP备19079148号