Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. function addHelpers(grid_width,dims,light_name) {
  2. if (light_name){
  3. var directionalLightHelper = new THREE.DirectionalLightHelper(light_name, 50);
  4. scene.add(directionalLightHelper)
  5. }
  6.  
  7.  
  8. var axes = new THREE.AxisHelper(200);
  9. scene.add(axes);
  10. var gridXY = new THREE.GridHelper(grid_width, dims, 0xff0000, 0xffffff);
  11. gridXY.rotation.x = Math.PI;
  12. gridXY.position.set(0, 0, 0);
  13. // gridXY.setColors(new THREE.Color(0xff0000), new THREE.Color(0xffffff));
  14. scene.add(gridXY);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement