Skip to content

Commit 870acaf

Browse files
authored
SkyMesh: Use colorNode instead of fragmentNode. (#31392)
1 parent 906211f commit 870acaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/jsm/objects/SkyMesh.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class SkyMesh extends Mesh {
165165

166166
} )();
167167

168-
const fragmentNode = /*@__PURE__*/ Fn( () => {
168+
const colorNode = /*@__PURE__*/ Fn( () => {
169169

170170
// constants for atmospheric scattering
171171
const pi = float( 3.141592653589793238462643383279502884197169 );
@@ -234,7 +234,7 @@ class SkyMesh extends Mesh {
234234
material.depthWrite = false;
235235

236236
material.vertexNode = vertexNode;
237-
material.fragmentNode = fragmentNode;
237+
material.colorNode = colorNode;
238238

239239
}
240240

0 commit comments

Comments
 (0)