大约有 284 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0045 秒)
Laya_社区(133) Laya3.0_api(87) Laya2.0_文档(37) Laya_示例(22) Laya3.0_文档(3) laya_api(1) Laya2.0_api(1)
...a.BlinnPhongMaterial; //添加漫反射贴图 Laya.Texture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); Laya.Texture2D.load("res/threeDimen/Physics/plywood.j...
来源: Laya_社区 发布时间: 20191009
... let h: number = gl.drawingBufferHeight; let texture2d: Laya.Texture2D = new Laya.Texture2D(w,h,Laya.TextureFormat.R8G8B8A8,false,false); texture2d.setPixels(pixels); let tex: Laya.Texture = new Laya.Texture(texture2d); ...
来源: Laya_社区 发布时间: 20200815
...skyDome = new Laya.SkyDome(); camera.sky = skyDome; skyDome.texture = Laya.Texture2D.load("../../res/threeDimen/env/sp_default/env.png");class SkyDomeSample { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.S...
来源: Laya_示例 发布时间: 20240929
Laya.Texture2D.load崩溃问题 var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("ceshi.jpg", Laya.Handler.create(this, function (texture) { material.albedoTexture = texture; })); 附件 : --> 2020-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20201207
... Laya.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
... } tex = new Texture2D(0, 0, format, false, false); tex.wrapModeU = exports.WarpMode.Clamp; tex.wrapModeV = exports.WarpMode.Clamp; ...
来源: Laya_社区 发布时间: 20201130
...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...
来源: Laya_社区 发布时间: 20240305
如何把一个像素数组生成一张texture2D 我的项目里自己获取了需要的像素矩阵,但我不知道如何将这些uint8Array像素数组去创建一张texture2d,也没有在官网api找到办法,请帮助我。 2018-09-06 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20180906
...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...
来源: Laya_示例 发布时间: 20240929
...ideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.wid...
来源: Laya_社区 发布时间: 20240305