大约有 78 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0035 秒)
...omTo`,`raycastAllFromTo`的使用,这段代码源自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript this.hitResult = new Laya.HitResult(); this.hitResults= []; //是否穿透 if (thi...
来源: Laya2.0_文档 发布时间: 20210715
...射到而显出的颜色和强度。如图9,更详细的可以查看原demo:([demo地址]())。 ```typescript var material = new Laya.BlinnPhongMaterial(); //漫反射贴图 Laya.Texture2D.load("res/threeDimen/texture/earth.png", Laya.Handler.create(this, function(texture) { //设置材质纹理...
来源: Laya2.0_文档 发布时间: 20210715
...质 水初级材质我们推荐的是从Unity中调好再导出使用。([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Material&name=WaterPrimaryMaterialDemo)) (图1)
来源: Laya2.0_文档 发布时间: 20210714
...混合目标。 `depthTest:int` 深度测试方式。 #### 效果预览: ([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Trail&name=TrailRender)) (图1)
来源: Laya2.0_文档 发布时间: 20210714
...合目标。 `depthTest:int` 深度测试方式。 #### 效果预览: ([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Particle3D&name=Particle_BurningGround)) (图1)
来源: Laya2.0_文档 发布时间: 20210715
...上半身(动画)层来控制投掷/设计动作。 我们可以在这个demo([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Animation3D&name=AnimationLayerBlend))中替换些操作来查看效果。 ```typescript //在混合模式的按钮监听事件中改变...
来源: Laya2.0_文档 发布时间: 20210715
...偏移。 #### 创建和使用Effect材质 下面代码来自官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Material&name=EffectMaterialDemo)): ```typescript var earth = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere())); earth.tr...
来源: Laya2.0_文档 发布时间: 20210714
...和性能方面都是非常优秀的。这些插件的官方都给出了的demo。比如[https://plyr.io/,http://video-dev.github.io/hls.js/demo/,http://codepen.io/sampotts/pen/JKEMqB。](https://plyr.io/%EF%BC%8Chttp://video-dev.github.io/hls.js/demo/%EF%BC%8Chttp://codepen.io/sampotts/pen/JKEM...
来源: Laya2.0_文档 发布时间: 20210714
...理。 #### 创建和使用材质 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Sky&name=Sky_SkyBox)),`SkyBox.instance` 是LayaAir3D中内置的一个天空盒网格。 ```typescript //设置相机的清除标识为天空...
来源: Laya2.0_文档 发布时间: 20210715
...射线检测,形状弹道的碰撞。 下面的代码来自于示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)) ```typescript //创建球型碰撞器 var sphereCollider = new Laya.SphereColliderShape(0.5); //使...
来源: Laya2.0_文档 发布时间: 20210715