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

大约有 148 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0038 秒)

31. laya.filters.ColorFilter [ 83%]

...色和 Alpha 通道值。 Public Methods  MethodDefined By  ColorFilter(mat:Array = null) 创建一个 ColorFilter 实例。 ColorFilterConstructor DetailColorFilter()Constructorpublic function ColorFilter(mat:Array = null) 创建一个 ColorFilter 实例。 Parameters mat:Array (default = null) ...

来源: laya_api 发布时间: 20170929

32. 粒子系统在webgl下 旋转会修改粒子大小的BUG,及解决方案 [ 83%]

...句gl_Position.xy += (rotation*a_CornerTextureCoordinate.xy) * pSize*vec2(mat[0][0],mat[1][1]);  。原来mat[0][0],mat[1][1]是罪魁祸首,旋转信息和缩放信息混在了一起。 所以解决方案就是去掉他们就行。     还有,matter.js的CCD版本高速下仍然有穿透,...

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

33. 自定义shader-简单shader [ 83%]

...orm.rotation = new Laya.Quaternion(0.7071068, 0, 0, -0.7071067); var customMaterial = new CustomMaterial(); layaMonkey.meshRender.sharedMaterial = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, this, function () { layaMonkey.transform.rotate(rotation, false); })...

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

34. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 83%]

...下: ```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; } ``` 片元着色器 `outline.fs` 代码如下: ```c++...

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

35. DirectionLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 83%]

...directionLight.color = new Laya.Vector3(1, 1, 1); //设置灯光方向 var mat = this.directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); this.directionLight.transform.worldMatrix = mat; ``` ​ **setForward** 平行光的方向,分别代表x、y、z轴上的...

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

36. DirectionLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 82%]

...ionLight.color = new Laya.Vector3(1, 1, 1); //设置平行光的方向 var mat = directionLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward** 平行光的方向,分别代表x、y、z轴上的方向,负...

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

37. DirectionLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 82%]

...irectionLight.color = new Vector3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.transform.worldMatrix; mat.setForward(new Vector3(-1.0, -1.0, -1.0)); directionLight.transform.worldMatrix=mat; ``` ​ **setForward** 平行光的方向,分别代表x、y、z轴上的方向...

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

38. SpotLight介绍(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 82%]

...rm.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); spotLight.transform.worldMatrix = mat; //设置聚光灯范围 spotLight.range = 6.0; //设置聚光灯锥形角度 spotLight.spotAngle...

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

39. SpotLight介绍(JavaScript-3D基础(JS)-LayaAir3D之灯光) [ 82%]

...rm.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方向 var mat = this.spotLight.transform.worldMatrix; mat.setForward(new Laya.Vector3(0.15, -1.0, 0.0)); this.spotLight.transform.worldMatrix = mat; //设置聚光灯范围 this.spotLight.range = 6.0; //设置聚光灯锥形角度 this...

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

40. SpotLight介绍(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 82%]

...form.position = new Vector3(0.0, 1.2, 0.0); //设置聚光灯的方向 var mat:Matrix4x4 = spotLight.transform.worldMatrix; mat.setForward(new Vector3(0.15, -1.0, 0.0)); directionLight.transform.worldMatrix=mat; //设置聚光灯范围 spotLight.range = 6.0; //设置聚光灯锥形角度 spotLight.s...

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