|
@@ -29,7 +29,7 @@
|
|
import * as THREE from 'three';
|
|
import * as THREE from 'three';
|
|
import * as Nodes from 'three/nodes';
|
|
import * as Nodes from 'three/nodes';
|
|
|
|
|
|
- import { attribute, positionLocal, positionWorld, normalLocal, normalWorld, normalView, color, texture, ShaderNode, func, uv, vec2, vec3, vec4, oscSine, triplanarTexture, viewportBottomLeft, js, string, global, loop, MeshBasicNodeMaterial, NodeObjectLoader } from 'three/nodes';
|
|
|
|
|
|
+ import { attribute, positionLocal, positionWorld, normalLocal, normalWorld, normalView, color, texture, ShaderNode, func, uv, float, vec2, vec3, vec4, oscSine, triplanarTexture, viewportBottomLeft, js, string, global, loop, MeshBasicNodeMaterial, NodeObjectLoader } from 'three/nodes';
|
|
|
|
|
|
import WebGPU from 'three/addons/capabilities/WebGPU.js';
|
|
import WebGPU from 'three/addons/capabilities/WebGPU.js';
|
|
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
|
|
import WebGPURenderer from 'three/addons/renderers/webgpu/WebGPURenderer.js';
|
|
@@ -202,7 +202,7 @@
|
|
|
|
|
|
// Triplanar Texture Mapping
|
|
// Triplanar Texture Mapping
|
|
material = new MeshBasicNodeMaterial();
|
|
material = new MeshBasicNodeMaterial();
|
|
- material.colorNode = triplanarTexture( texture( uvTexture ) );
|
|
|
|
|
|
+ material.colorNode = triplanarTexture( texture( uvTexture ), null, null, float( .01 ) );
|
|
materials.push( material );
|
|
materials.push( material );
|
|
|
|
|
|
// Screen Projection Texture
|
|
// Screen Projection Texture
|