Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addHelpers(grid_width,dims,light_name) {
- if (light_name){
- var directionalLightHelper = new THREE.DirectionalLightHelper(light_name, 50);
- scene.add(directionalLightHelper)
- }
- var axes = new THREE.AxisHelper(200);
- scene.add(axes);
- var gridXY = new THREE.GridHelper(grid_width, dims, 0xff0000, 0xffffff);
- gridXY.rotation.x = Math.PI;
- gridXY.position.set(0, 0, 0);
- // gridXY.setColors(new THREE.Color(0xff0000), new THREE.Color(0xffffff));
- scene.add(gridXY);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement