• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 417 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0047 秒)

51. 射线检测-选取物体 [ 86%]

...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_示例 发布时间: 20240929

52. 自定义shader-边缘光照shader [ 86%]

...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_示例 发布时间: 20240929

53. laya.d3.resource.models.SkyDome [ 86%]

...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

54. 高级应用-寻路导航 [ 85%]

..."../../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_示例 发布时间: 20240929

55. 二进制文件打包后,读取不到zip包内的文件 [ 85%]

...     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

56. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 84%]

...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

57. WaterPrimaryMaterial的使用 [ 84%]

...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

58. Failed to execute 'texImage2D怎么处理? [ 84%]

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

59. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 84%]

...          }                     tex = new Texture2D(0, 0, format, false, false);                     tex.wrapModeU = exports.WarpMode.Clamp;                     tex.wrapModeV = exports.WarpMode.Clamp;          ...

来源: Laya_社区 发布时间: 20201130

60. Laya3.0 图片拼合缩放会导致两张图片之间有一条横线[已解决] [ 84%]

...  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