• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 651 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0067 秒)

611. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 46%]

...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210715

612. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 46%]

...ite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; ``` 然后来看下效果。 ![](img/1.png)(图1)

来源: Laya2.0_文档 发布时间: 20210715

613. 为什么说没有​ playByFrame方法 [ 45%]

...的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)这样的方法?或求3D抛物线移动的方法或算法。 LayaAir 2D有没有夜晚灯光照明效果实现的内置方法? 引擎有没有管理或访问系统...

来源: Laya_社区 发布时间: 20170926

614. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 45%]

...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...

来源: Laya_社区 发布时间: 20170428

615. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 45%]

...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...

来源: Laya2.0_文档 发布时间: 20210715

616. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 45%]

...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...

来源: Laya2.0_文档 发布时间: 20210715

617. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 44%]

...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new Laya.MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/...

来源: Laya2.0_文档 发布时间: 20210715

618. laya.d3.core.light.DirectionLight_API3.0 [ 44%]

...number Returns void shadowFourCascadeSplits get shadowFourCascadeSplits(): Vector3 set shadowFourCascadeSplits(value: Vector3): void Defined in laya/d3/core/light/DirectionLight.ts:42 四级级联阴影分割比例,X、Y、Z依次为其分割比例,Z必须大于Y,Y必须大于X。 Returns Vector3 De...

来源: Laya3.0_api 发布时间: 20231115

619. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 44%]

...d(new Laya.MeshSprite3D(mesh)); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); //创建材质 var customMaterial = new MultiplePassOutlineMaterial(); //漫反射贴图 Laya.Texture2D.load("res/three...

来源: Laya2.0_文档 发布时间: 20210715

620. 两个物体 ,如果在update里修改其中一个物体的rotationEuler,会触发另一个物体的onTriggerEnter回调 [ 44%]

...nListener.func_onTriggerEnter, "onTriggerEnter"); let tPosEnemy = new Laya.Vector3(); Util3d.v3Copy(tPosEnemy, tPosBull.transform.position); tPosEnemy.x -= 10; pEnemyObj.transform.position = tPosEnemy; // 调用这个方法会触发 onTriggerEnter BUG,看下面Laya.timer.loop里的注释 let pTrigge...

来源: Laya_社区 发布时间: 20200720