大约有 4,671 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0115 秒)
Laya_社区(3819) Laya2.0_文档(255) Laya_示例(157) Laya3.0_文档(145) Laya3.0_api(132) Laya2.0_示例(119) Laya2.0_api(23) laya_api(21)
...  (图1) 此时FPS显示30,并且在鼠标移动时,可以感觉到圆球位置的更新不连贯。设置Stage.frameRate为Stage.FRAME_MOUSE: ```typescript Laya.stag...
来源: Laya2.0_文档 发布时间: 20210714
... 0); let canvas = htmlCanvas.getCanvas(); let context = canvas.getContext('2d'); var imageData = context.getImageData(0, 0, 128, 128);请问该如何从canvas里获取captureScreen需要的imageData? 2017-08-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20170824
...cision mediump float; #endif #include "Lighting.glsl"; uniform sampler2D u_MainTex; uniform sampler2D u_NoiseTex; uniform vec3 u_CameraPos; uniform vec3 u_AmbientColor; uniform DirectionLight u_DirectionLight; uniform float u_Time; varying vec2 v_textcoord; varying vec3 v_normal; varying vec4...
来源: Laya_社区 发布时间: 20190923
... } tex = new Texture2D(0, 0, format, false, false); tex.wrapModeU = exports.WarpMode.Clamp; tex.wrapModeV = exports.WarpMode.Clamp; ...
来源: Laya_社区 发布时间: 20201130
...rial: Laya.BaseMaterial = new WaterMaterial(); Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, functio...
来源: Laya_社区 发布时间: 20181030
...gClass } = Laya; interface AnimatorPlayScriptInfo { animator: Laya.Animator2D; layerindex: number; playState: Laya.AnimatorState2D; } /** * 继承自AnimatorStateScript(动画状态脚本) */ @regClass() export class AnimationScript2D extends Laya.AnimatorState2DScript { /**动画的状态信息 */ ...
来源: Laya_社区 发布时间: 20251010
...区域模型隐藏 meshSprite3D.active = false; var heightMap: Laya.Texture2D = Laya.Loader.getRes("../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png") as Laya.Texture2D; //初始化MeshTerrainSprite3D this.terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(meshSprite3D.m...
来源: Laya_社区 发布时间: 20180309
... 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided. at Texture2D.__proto._createWebGlTexture (laya.d3.js:37225) at Texture2D.__proto.recreateResource (laya.d3.js:37271) ...
来源: Laya_社区 发布时间: 20190227
...小游戏 关系链数据上屏绘制是获取上屏(canvas.getContext('2d'))会报错,普通2D微信小游戏正常 VM291:1 gameThirdScriptError Cannot set property '__proto__' of null TypeError: Cannot set property '__proto__' of null at HTMLCanvasElement.n.getContext (http://127.0.0....
来源: Laya_社区 发布时间: 20180328
....loader.load("http://103.219.177.59:63344/%2 ... ot%3B, Laya.Loader.TEXTURE2D).then((texture: Laya.Texture2D) => { //在U方向上使用WARPMODE_CLAMP texture.wrapModeU = Laya.WrapMode.Clamp; //在V方向使用WARPMODE_CLAMP ...
来源: Laya_社区 发布时间: 20230316