Explorar o código

Merge pull request #5634 from akshaynagpal/patch-1

Changed no. of segments of circle and cylinder
Mr.doob %!s(int64=11) %!d(string=hai) anos
pai
achega
c853b7732e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      editor/js/Menubar.Add.js

+ 2 - 2
editor/js/Menubar.Add.js

@@ -98,7 +98,7 @@ Menubar.Add = function ( editor ) {
 	option.onClick( function () {
 
 		var radius = 20;
-		var segments = 8;
+		var segments = 32; // 32 segments instead of 8 as it gives the circle a more realistic look.
 
 		var geometry = new THREE.CircleGeometry( radius, segments );
 		var mesh = new THREE.Mesh( geometry, new THREE.MeshPhongMaterial() );
@@ -120,7 +120,7 @@ Menubar.Add = function ( editor ) {
 		var radiusTop = 20;
 		var radiusBottom = 20;
 		var height = 100;
-		var radiusSegments = 8;
+		var radiusSegments = 32; // 32 segments instead of 8 as it gives the cylinder a more realistic look.
 		var heightSegments = 1;
 		var openEnded = false;
 

粤ICP备19079148号