大约有 425 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(241) Laya3.0_api(91) Laya2.0_文档(46) Laya_示例(22) Laya2.0_api(10) Laya3.0_文档(8) laya_api(7)
... 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
...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 boxCollider = plane.addComponent(Laya.BoxCollider); boxCollider.setFr...
来源: Laya_示例 发布时间: 20251130
...omMaterial1 = new CustomMaterial(); customMaterial1.setDiffuseTexture(Laya.Texture2D.load("../../res/threeDimen/skinModel/dude/Assets/dude/head.png")); customMaterial1.setMarginalColor(new Laya.Vector3(1, 0.7, 0)); var customMaterial2 = new CustomMaterial(); customMaterial2.setDiffuseTexture(Laya.Te...
来源: Laya_示例 发布时间: 20251130
...ronmentSpecular : BaseTexture 获取环境高光贴图。 Sky texture : Texture2D 获取天空立方体纹理。 SkyDomePublic Methods MethodDefined By SkyDome() 创建一个 SkyBox 实例。 SkyDome _render(state:RenderState):void[override] SkyDome loadEnvInfo(envInfo:String):voidSkyD...
来源: laya_api 发布时间: 20170929
..."../../res/threeDimen/scene/TerrainScene/Assets/HeightMap.png", clas: Laya.Texture2D, priority: 1, params: [true] }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/AStarMap.png", clas: Laya.Texture2D, priority: 1, params: [true] } ]; Laya.loader.create(resource, Laya.Handler.create(this, onL...
来源: Laya_示例 发布时间: 20251130
... console.log('res,', (typeof res)) Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; let item = 'res/layabox.png'...
来源: Laya_社区 发布时间: 20210604
...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
...ar material: 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, ...
来源: Laya_社区 发布时间: 20181030
Failed to execute 'texImage2D怎么处理? 我用 var _texture2d:Texture2D = new Texture2D(); _texture2d.onAsynLoaded(null, image); image是一个base64数据, 然后就报下面的错误 "Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signatur...
来源: Laya_社区 发布时间: 20180605
... } tex = new Texture2D(0, 0, format, false, false); tex.wrapModeU = exports.WarpMode.Clamp; tex.wrapModeV = exports.WarpMode.Clamp; ...
来源: Laya_社区 发布时间: 20201130