大约有 481 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(255) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
...ndex = "1"; this.newMask.style.width = "100%"; this.newMask.style.height = Math.max(document.body.scrollHeight, document.documentElement.scrollHeight) + 100 + "px"; this.newMask.style.top = "0px"; this.newMask.style.left = "0px"; this.newMask.style.background = "gray"; this.newMask.style.filter = "a...
来源: Laya_社区 发布时间: 20181214
...art #defineGLSL LitVS #define SHADER_NAME slicePBR #include "Math.glsl"; #include "Scene.glsl"; #include "SceneFogInput.glsl" #include "Camera.glsl"; #include "Sprite3DVertex.glsl"; #include "VertexCommon.glsl"; #include "PBRVertex.glsl"; ...
来源: Laya_社区 发布时间: 20250428
...re.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.Sphere...
来源: Laya_示例 发布时间: 20251209
...象 */ private function updateColor(txt:Text):void { var c:int = parseInt(Math.random()*3); switch(c) { case 0: { txt.color="#EEE000"; break; } case 1: { txt.color="#FFFFFF"; break; } case 2: { txt.color="#FF0000"; break; } default: { txt.color="#EEE000"; break; } } } /** * 缓动完成后的回调...
来源: Laya2.0_文档 发布时间: 20210715
...s.onLoop) } _proto.onLoop = function(){ //移动 this.x -= 5; this.moveX = Math.abs(this.x); //当背景1向左移动出游戏的显示区域 1600,则将背景1的x轴坐标,向右移动 1600*2. if (this.moveX - this.bg1.x >= this.BG_WIDTH) { this.bg1.x += this.BG_WIDTH * 2; } //当背景2向...
来源: Laya_社区 发布时间: 20160722
...ile(url, localfile, (total, now, speed) => { console.log(`downloading:${Math.floor((now / total) * 100)}`) return false;0 }, (curlret, httpret) => { if (curlret != 0 || httpret < 200 || httpret >= 300) { resolve(null); } else { resolve(localfile); } }, 10, 100000000); } ); } let zipfile ...
来源: Laya3.0_文档 发布时间: 20251010
...r() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRotationZ); this.tempRotationZ.cloneTo(this.camera.transform.localRotat...
来源: Laya3.0_文档 发布时间: 20251010
...;z值会决定Cluster受区域光(点光、聚光)影响的数量,Math.floor(2048 / lightClusterCount.z - 1) * 4 为每个Cluster的最大平均接受区域光数量,如果每个Cluster所接受光源影响的平均数量大于该值,则较远的Cluster会忽略其中多余的光照影响...
来源: Laya3.0_文档 发布时间: 20251014
...re.scene.Scene; import laya.d3.graphics.VertexElementUsage; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.models.CapsuleMesh; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SphereMesh; import laya.d3.shader.Shader3D; import laya.d3.shade...
来源: Laya_示例 发布时间: 20251209
...码如下: #defineGLSL unlitVS #define SHADER_NAME UnlitShader #include "Math.glsl"; #include "Scene.glsl"; #include "SceneFogInput.glsl"; #include "Camera.glsl"; #include "Sprite3DVertex.glsl"; #include "VertexCommon.glsl"; #ifdef UV varying vec2 v_Texcoord0; #endif // UV #ifdef COLOR varying vec...
来源: Laya3.0_文档 发布时间: 20251010