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

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

1. 灯光-方向光 [ 100%]

...ull, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.dir...

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

2. 灯光-聚光 [ 98%]

...on = new Laya.Quaternion(); var _position = new Laya.Vector3(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transformQuat(spotLight.transform.position, _quaternion, _position); spotLight.transform.position = _position; va...

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

3. 灯光-点光 [ 97%]

... = new Laya.Vector3(); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transformQuat(pointLight.transform.position, _quaternion, _position); pointLight.transform.position = _position; ...

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

4. 材质-BlinnPhong-反射贴图 [ 93%]

...rial; //反射贴图 material.reflectTexture = textureCube; }); Laya.timer.frameLoop(1, this, function () { teapot1.transform.rotate(this.rotation, false); teapot2.transform.rotate(this.rotation, false); });class BlinnPhong_ReflectMap { private rotation:Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); c...

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

5. 自定义shader-边缘光照shader [ 62%]

... = customMaterial; var rotation = new Laya.Vector3(0, 0.01, 0); Laya.timer.frameLoop(1, null, function () { earth.transform.rotate(rotation, true); }); function initShader() { var attributeMap = { 'a_BoneIndices': Laya.VertexElementUsage.BLENDINDICES0, 'a_BoneWeights': Laya.VertexElementUsage.BLENDW...

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