|
@@ -29,6 +29,7 @@ import SpecularMIPLevelNode from '../utils/SpecularMIPLevelNode.js';
|
|
import SpriteSheetUVNode from '../utils/SpriteSheetUVNode.js';
|
|
import SpriteSheetUVNode from '../utils/SpriteSheetUVNode.js';
|
|
import TimerNode from '../utils/TimerNode.js';
|
|
import TimerNode from '../utils/TimerNode.js';
|
|
import TriplanarTexturesNode from '../utils/TriplanarTexturesNode.js';
|
|
import TriplanarTexturesNode from '../utils/TriplanarTexturesNode.js';
|
|
|
|
+import PackingNode from '../utils/PackingNode.js';
|
|
|
|
|
|
// geometry
|
|
// geometry
|
|
import RangeNode from '../geometry/RangeNode.js';
|
|
import RangeNode from '../geometry/RangeNode.js';
|
|
@@ -143,6 +144,9 @@ export const frameId = nodeImmutable( TimerNode, TimerNode.FRAME );
|
|
export const triplanarTextures = nodeProxy( TriplanarTexturesNode );
|
|
export const triplanarTextures = nodeProxy( TriplanarTexturesNode );
|
|
export const triplanarTexture = ( texture, ...params ) => triplanarTextures( texture, texture, texture, ...params );
|
|
export const triplanarTexture = ( texture, ...params ) => triplanarTextures( texture, texture, texture, ...params );
|
|
|
|
|
|
|
|
+export const directionToColor = nodeProxy( PackingNode, PackingNode.DIRECTION_TO_COLOR );
|
|
|
|
+export const colorToDirection = nodeProxy( PackingNode, PackingNode.COLOR_TO_DIRECTION );
|
|
|
|
+
|
|
// geometry
|
|
// geometry
|
|
|
|
|
|
export const range = ( min, max ) => nodeObject( new RangeNode( min, max ) );
|
|
export const range = ( min, max ) => nodeObject( new RangeNode( min, max ) );
|