Skip to content

Commit

Permalink
SkyMesh,WaterMesh: Fix NodeMaterial imports (#29477)
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy authored Sep 23, 2024
1 parent 19e79dc commit f97d930
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions examples/jsm/objects/SkyMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import {
BackSide,
BoxGeometry,
Mesh,
NodeMaterial,
Vector3
} from 'three';
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';
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';

/**
* Based on "A Practical Analytic Model for Daylight"
Expand Down
3 changes: 1 addition & 2 deletions examples/jsm/objects/Water2Mesh.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import {
Color,
Mesh,
NodeMaterial,
Vector2,
Vector3
} from 'three';
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';
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';

/**
* References:
Expand Down
3 changes: 1 addition & 2 deletions examples/jsm/objects/WaterMesh.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {
Color,
Mesh,
NodeMaterial,
Vector3
} from 'three';
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';
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';

/**
* Work based on :
Expand Down

0 comments on commit f97d930

Please sign in to comment.