Skip to content

Commit f97d930

Browse files
authored
SkyMesh,WaterMesh: Fix NodeMaterial imports (#29477)
1 parent 19e79dc commit f97d930

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

examples/jsm/objects/SkyMesh.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import {
22
BackSide,
33
BoxGeometry,
44
Mesh,
5-
NodeMaterial,
65
Vector3
76
} from 'three';
8-
import { float, Fn, vec3, acos, add, mul, clamp, cos, dot, exp, max, mix, modelViewProjection, normalize, positionWorld, pow, smoothstep, sub, varying, varyingProperty, vec4, uniform, cameraPosition } from 'three/tsl';
7+
import { Fn, NodeMaterial, float, vec3, acos, add, mul, clamp, cos, dot, exp, max, mix, modelViewProjection, normalize, positionWorld, pow, smoothstep, sub, varying, varyingProperty, vec4, uniform, cameraPosition } from 'three/tsl';
98

109
/**
1110
* Based on "A Practical Analytic Model for Daylight"

examples/jsm/objects/Water2Mesh.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import {
22
Color,
33
Mesh,
4-
NodeMaterial,
54
Vector2,
65
Vector3
76
} from 'three';
8-
import { vec2, viewportSafeUV, viewportSharedTexture, reflector, pow, float, abs, texture, uniform, TempNode, NodeUpdateType, vec4, Fn, cameraPosition, positionWorld, uv, mix, vec3, normalize, max, dot, screenUV } from 'three/tsl';
7+
import { Fn, NodeMaterial, NodeUpdateType, TempNode, vec2, viewportSafeUV, viewportSharedTexture, reflector, pow, float, abs, texture, uniform, vec4, cameraPosition, positionWorld, uv, mix, vec3, normalize, max, dot, screenUV } from 'three/tsl';
98

109
/**
1110
* References:

examples/jsm/objects/WaterMesh.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import {
22
Color,
33
Mesh,
4-
NodeMaterial,
54
Vector3
65
} from 'three';
7-
import { add, cameraPosition, div, normalize, positionWorld, sub, timerLocal, Fn, texture, vec2, vec3, vec4, max, dot, reflect, pow, length, float, uniform, reflector, mul, mix } from 'three/tsl';
6+
import { Fn, NodeMaterial, add, cameraPosition, div, normalize, positionWorld, sub, timerLocal, texture, vec2, vec3, vec4, max, dot, reflect, pow, length, float, uniform, reflector, mul, mix } from 'three/tsl';
87

98
/**
109
* Work based on :

0 commit comments

Comments
 (0)