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

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

141. SkyBoxMaterial材质详解(JavaScript-3D基础(JS)-天空材质详解) [ 57%]

...起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:TextureCube` 天空盒纹理。 #### 创建和使用材质 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language...

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

142. laya.d3.core.BaseCamera [ 56%]

... Boolean[read-only] 获取在场景中是否激活。 Node  clearColor : Vector4摄像机的清除颜色,默认颜色为CornflowerBlue。BaseCamera  clearFlag : int清楚标记。BaseCamera  cullingMask : int 可视层位标记遮罩值,支持混合 例:cullingMask=Math.pow(2,0)|Math.pow(2,1)...

来源: Laya2.0_api 发布时间: 20190513

143. SkyBoxMaterial材质详解(ActionScript-3D基础(AS3)-天空材质详解) [ 56%]

...起来像天空一样。 #### 主要属性和方法 > 属性 `tintColor:Vector4` 颜色。 `exposure:Number` 曝光强度。 `textureCube:TextureCube` 天空盒纹理。 #### 创建和使用材质 下面的代码来自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language...

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

144. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 56%]

...到整数的网格索引 */ private function getGridIndex(x:int, z:int,out:Vector2):void{ var minX:int = terrainSprite.minX; var minZ:int = terrainSprite.minZ; var cellX:Number = terrainSprite.width / aStarMap.width; var cellZ:Number = terrainSprite.depth / aStarMap.height; var gridX:int = Math.floo...

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

145. 自定义shader-地形shader [ 54%]

....addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.rotate(new Laya.Vector3(-38, 180, 0), false, false); camera.transform.translate(new Laya.Vector3(-5, 20, -30), false); camera.addComponent(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene...

来源: Laya_示例 发布时间: 20240930

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

... @return 线条颜色 */ get outlineColor() { return this._shaderValues.getVector(MultiplePassOutlineMaterial.OUTLINECOLOR); } set outlineColor(value) { this._shaderValues.setVector(MultiplePassOutlineMaterial.OUTLINECOLOR, value); } /** * 获取轮廓宽度。 * @return 轮廓宽度,范围为0到0....

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

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

... @return 线条颜色 */ get outlineColor() { return this._shaderValues.getVector(MultiplePassOutlineMaterial.OUTLINECOLOR); } set outlineColor(value) { this._shaderValues.setVector(MultiplePassOutlineMaterial.OUTLINECOLOR, value); } /** * 获取轮廓宽度。 * @return 轮廓宽度,范围为0到0....

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

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

...色 */ public function get outlineColor() { return this._shaderValues.getVector(MultiplePassOutlineMaterial.OUTLINECOLOR); } public function set outlineColor(value) { this._shaderValues.setVector(MultiplePassOutlineMaterial.OUTLINECOLOR, value); } /** * 获取轮廓宽度。 * @return 轮廓宽度,...

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

149. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 53%]

........... if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else if (e.keyCode == 100) { // console.log('d...

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

150. Config3D_API3.0 [ 52%]

...s:19 是否开启UniformBuffer Static lightClusterCount lightClusterCount: Vector3 = new Vector3(12, 12, 12) Defined in Config3D.ts:47 X、Y、Z轴的光照集群数量,Z值会影响Cluster接受区域光(点光、聚光)影响的数量,Math.floor(2048 / lightClusterCount.z - 1) * 4 为每个Cluster...

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