|
|
@@ -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();
|