大约有 8 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0033 秒)
...terial: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); boxRender.sharedMaterial = boxMaterial; // 添加到场景 this.scene.addChild(box); // 设置位置 box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); /* 球体 *...
来源: Laya3.0_文档 发布时间: 20250103
...中材质球的原始属性设置 Share Material 当我们改变Renderer.sharedMaterial的时候,所有使用这个材质球物体都会被改变,并且改变后的设置将会被保存在项目工程中 假设cube01和cube02共用一个材质redMat,当我们想通过sharedMaterial修改cube01...
来源: Laya3.0_文档 发布时间: 20250103
...材质应用到Sprite3D上 this.videoPlane.getComponent(Laya.MeshRenderer).sharedMaterial = mat; } } 效果如图所示: 下面我们来介绍一下videoTexture中常用的属性和方法,开发者也可以在API文档中查看videoTexture的所有属性和方法。 属性: 名称 用途 curre...
来源: Laya3.0_文档 发布时间: 20250214
...erial: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); coneRender.sharedMaterial = coneMaterial; //把圆锥形3D节点对象添加到3D场景节点下 this.scene.addChild(cone); //设置随机位置 this.tmpVector.setValue(Math.random() * 6 - 2, 6, Math.random() * 6 - 2); cone.transform.po...
来源: Laya3.0_文档 发布时间: 20250103
...图层(layer) 用于2D灯光组件的图层遮罩所影响的图层 材质(sharedMaterial) 设置自定义的2D着色器材质,不设置引擎会使用默认材质 线段数据(positions) 每一组数据代表2D节点上的一条线段,其中 X,Y 值为线段的起点,Z,W 值为线段的终点...
来源: Laya3.0_文档 发布时间: 20250214
...图层(layer) 用于2D灯光组件的图层遮罩所影响的图层 材质(sharedMaterial) 设置自定义的2D着色器材质,不设置引擎会使用默认材质 淡出时间(time) 拖尾中点的生命周期(以秒为单位) 最小距离(minVertexDistance) 拖尾中两点之间的最小距...
来源: Laya3.0_文档 发布时间: 20250214
...lane的材质为创建的材质 this.plane.getComponent(Laya.MeshRenderer).sharedMaterial = mat1; //指定纹理为摄像机的渲染目标 mat1.albedoTexture = this.renderTargetCamera.renderTarget; 在LayaAir引擎中,渲染顺序renderingOrder越小,渲染优先度越高。 运行效果如动...
来源: Laya3.0_文档 发布时间: 20240910
...ite3D>this.layaMonkey.getChildAt(0).getChildAt(0))).skinnedMeshRenderer.sharedMaterial); //设置反照率强度 mat.albedoIntensity = 8; //设置猴子精灵的位置 this.layaMonkey.transform.position.cloneTo(this._finalPosition); //初始化相机 var moveCamera: Camera = (<Camera>this.m...
来源: Laya3.0_文档 发布时间: 20230303