BoxGeometry用来在三维空间内创建一个立方体盒子对象.
用法: var geometry = new THREE.BoxGeometry(1,1,1);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var cube = new THREE.Mesh(geometry,material);
scene.add(cube);
BoxGeometry
<p...
分类:
Web程序 时间:
2015-01-26 15:11:12
阅读次数:
193
CubeGeometry用来在三维空间内创建一个立方体盒子对象.被BoxGeometry对象替换.
用法: var geometry = new THREE.BoxGeometry(1,1,1);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var cube = new THREE.Mesh(geometry,material);
scene.add(cube);
CubeGe...
分类:
Web程序 时间:
2015-01-26 15:10:23
阅读次数:
3541
CircleGeometry用来在三维空间内创建一个圆形对象,因为圆形对象是由参数segments指定的一个个三角形围绕圆心拼接而成,所以也可以是多边形对象.
用法: var radius = 5, segments = 32;
var geometry = new THREE.CircleGeometry(radius,segments);
var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
var c...
分类:
Web程序 时间:
2015-01-26 15:08:54
阅读次数:
221
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may complete at most two transactions. Note: You may not eng...
分类:
编程语言 时间:
2015-01-26 13:45:27
阅读次数:
200
!以后别说自己不知道!每个资源文件(外部导入和内部创建的)对应一个.meta文件。这个.meta文件中的guid就唯一标识这个资源。内部创建的资源会使用外部导入的资源,比如 内部资源材质Material使用贴图Textures(预制体、场景中使用了更多的资源)。 材质怎么知道自己使用了那些资源呢? 就在自己的文件中记录着其它资源的GUID。...
分类:
编程语言 时间:
2015-01-25 22:35:17
阅读次数:
267
Best Time to Buy and Sell Stock IISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ...
分类:
其他好文 时间:
2015-01-25 19:26:04
阅读次数:
119
Creating Apps with Material DesignMaterial design is a comprehensive guide for visual, motion, and interaction design across platforms and devices. To...
分类:
移动开发 时间:
2015-01-25 18:11:31
阅读次数:
161
Defining Shadows and Clipping ViewsThis lesson teaches you toAssign Elevation to Your ViewsCustomize View Shadows and OutlinesClip ViewsYou should als...
分类:
其他好文 时间:
2015-01-25 18:11:10
阅读次数:
176
Defining Custom AnimationsThis lesson teaches you toCustomize Touch FeedbackUse the Reveal EffectCustomize Activity TransitionsAnimate View State Chan...
分类:
其他好文 时间:
2015-01-25 18:09:28
阅读次数:
282
Getting StartedThis lesson teaches you toApply the Material ThemeDesign Your LayoutsSpecify Elevation in Your ViewsCreate Lists and CardsCustomize You...
分类:
其他好文 时间:
2015-01-25 18:05:08
阅读次数:
188