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

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

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

...: 顶点着色器 `outline.vs` 代码如下: ```c++ attribute vec4 a_Position; attribute vec3 a_Normal; uniform mat4 u_MvpMatrix; uniform float u_OutlineWidth; void main() { vec4 position = vec4(a_Position.xyz + a_Normal * u_OutlineWidth, 1.0); gl_Position = u_MvpMatrix * position; } ``` 片元...

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

102. laya.d3.Touch_API3.0 [ 88%]

... Hierarchy Touch Implements ISingletonElement Index Accessors identifier position Methods _getIndexInList _setIndexInList Accessors identifier get identifier(): number Defined in laya/d3/Touch.ts:21 获取唯一识别ID。 Returns number 唯一识别ID。 position get position(): Vector2 Defined in ...

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

103. laya.d3.graphics.VertexPositionNormalTexture0Texture1Skin [ 88%]

...mentationAll Packages | All Classes | Index | Frames No Frames VertexPositionNormalTexture0Texture1SkinProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1SkinInheritanceVertexPositionNormalTexture0Texture1Skin ObjectImplements IVertex VertexPosi...

来源: laya_api 发布时间: 20170929

104. 3d物理 刚体旋转bug 2.17到2.12都有 [ 87%]

...分支处理内: var shapeOffset = this._colliderShape.localOffset; var position = transform.position; var btPosition = PhysicsComponent._btVector30; if (shapeOffset.x !== 0 || shapeOffset.y !== 0 || shapeOffset.z !== 0) { var physicPosition = PhysicsComponent._tempVector30; var worldMat = transfo...

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

105. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1SkinTangent [ 87%]

...mentationAll Packages | All Classes | Index | Frames No Frames VertexPositionNormalColorTexture0Texture1SkinTangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1SkinTangentInheritanceVertexPositionNormalColorTexture0Texture1SkinTangent...

来源: laya_api 发布时间: 20170929

106. 为什么动态设置聚光灯朝向无效呢 [ 87%]

...ew Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始终朝向...

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

107. 为什么动态设置聚光灯朝向无效呢 [ 87%]

...ew Laya.Vector3(); var dir = new Laya.Vector3(); var src = model.transform.position; spotLight.transform.position = camera.transform.position; Laya.Vector3.subtract(src, camera.transform.position,tar); Laya.Vector3.normalize(tar, dir); spotLight.direction = dir; 目的是让聚光灯,始终朝向...

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

108. laya.d3.graphics.VertexPositionNormalTexture0Texture1SkinTangent [ 87%]

...mentationAll Packages | All Classes | Index | Frames No Frames VertexPositionNormalTexture0Texture1SkinTangentProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1SkinTangentInheritanceVertexPositionNormalTexture0Texture1SkinTangent ObjectImplemen...

来源: laya_api 发布时间: 20170929

109. 通过PrimitiveMesh创建简单Mesh(JavaScript-3D基础(JS)-LayaAir3D之模型和网格) [ 87%]

....MeshSprite3D(Laya.PrimitiveMesh.createBox(0.5, 0.5, 0.5))); box.transform.position = new Laya.Vector3(2.0, 0.25, 0.6); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); //球体 var sphere = sprite3D.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createSphere(0.25, 20, 20))); spher...

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

110. 2d 自定义shader [ 87%]

...色器程序。             let vs: string = `attribute vec2 position;             attribute vec2 texcoord;             attribute vec4 color;             uniform vec2 size;             uniform mat4 mmat;             varying vec2...

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