I try to use box/sphere/plane to receive.
However, the effect is different from that of shadertoy.com.
What geometry should I use to receive it?
const material = new THREE.ShaderMaterial({
side:THREE.DoubleSide,
vertexShader,
fragmentShader,
uniforms,
});
const geoShere = new THREE.SphereGeometry(5, 360, 180);
const geoBox = new THREE.BoxGeometry(5, 5, 5);
const geoPlan = new THREE.PlaneGeometry(5, 5);
function makeInstance(geometry, x) {
const cube = new THREE.Mesh(geometry, material);
scene.add(cube);
cube.position.x = x;
return cube;
}