Просмотр исходного кода

Update webgpu_reflection_roughness.html

sunag 6 месяцев назад
Родитель
Сommit
c06fa76524
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      examples/webgpu_reflection_roughness.html

+ 2 - 2
examples/webgpu_reflection_roughness.html

@@ -9,7 +9,7 @@
 	<body>
 
 		<div id="info">
-			<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> webgpu - dirty reflection
+			<a href="https://threejs.org" target="_blank" rel="noopener">three.js</a> webgpu - roughness reflection
 		</div>
 
 		<script type="importmap">
@@ -102,7 +102,7 @@
 				floorMaterial.colorNode = Fn( () => {
 
 					// blur reflection using textureBicubic()
-					const dirtyReflection = textureBicubic( reflection, roughness.mul( .9 ) ).rgb;
+					const dirtyReflection = textureBicubic( reflection, roughness.mul( .9 ) );
 
 					// falloff opacity by distance like an opacity-fog
 					const opacity = rangeFogFactor( 7, 25 ).oneMinus();

粤ICP备19079148号