#Moving object changes the color
6 messages · Page 1 of 1 (latest)
it seems relative to the camera position, so I'm assuming lighting?
this is the cursor code
this.cursor = new THREE.Mesh(
new THREE.PlaneGeometry(
map_config.square_size,
map_config.square_size,
1, 1
),
new THREE.MeshStandardMaterial(
{
color: 0xf533d9,
side: THREE.DoubleSide,
flatShading: true
}
)
);
this.cursor.position.set(0, 1.25, 0);
this.cursor.rotation.x = -Math.PI / 2;
this.cursor.name = "cursor";