Переглянути джерело

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( () => {
 				const withSampleShader = Fn( () => {
 
 
@@ -287,4 +287,4 @@
 
 
 		</script>
 		</script>
 	</body>
 	</body>
-</html>
+</html>

粤ICP备19079148号