大约有 418 项符合查询结果, 库内数据总量为 30,784 项。 (搜索耗时: 0.0051 秒)
Laya_社区(237) Laya3.0_api(91) Laya2.0_文档(46) Laya_示例(22) Laya2.0_api(10) laya_api(7) Laya3.0_文档(5)
...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_示例 发布时间: 20241123
...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_示例 发布时间: 20241123
...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_示例 发布时间: 20241123
... 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
... 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