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

大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0070 秒)

611. TypeError: Cannot set property 'material' of undefined [ 69%]

...Materials/Materials.lmat") as Laya.UnlitMaterial;         var unlitTexture:Laya.Texture2D = Laya.Loader.getRes("Images/BG_PopWindow.png") as Laya.Texture2D; material.albedoTexture = unlitTexture; this.unit3D.meshRenderer.material = material; 附件 : --> 2019-09-07 添加评论 免费帖 -->...

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

612. beta9渲染大bug!!!急急急!!!有demo和截图!!! [ 69%]

...中使用的材质为PBR材质,原因应该是由于机型不支持OES_texture_float(浮点纹理)或者OES_texture_float_linear(浮点纹理线性采样)扩展导致的,可以在出现问题的机型上控制台打印下Laya.LayaGL.renderEngine._supportCapatable._extensionMap这个里面的内...

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

613. 如何获取animation的node节点? [ 69%]

... Laya.Sprite(); // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniPr...

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

614. 图片遮罩大小跟设置不一致 [ 69%]

... (function() { var Sprite  = Laya.Sprite; var Stage   = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL   = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); ...

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

615. laya.particle.Particle2D [ 69%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929

616. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 68%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

来源: Laya2.0_文档 发布时间: 20210715

617. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 68%]

...//新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Vector4(10, 10, 0, 0); //设...

来源: Laya2.0_文档 发布时间: 20210714

618. laya.ani.bone.Skeleton [ 68%]

...rite  templet : Templet[read-only] 得到动画模板的引用 Skeleton texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,...

来源: Laya2.0_api 发布时间: 20190513

619. layaair1.7.9 beta版,给图片加上颜色滤镜,效果有问题 [ 68%]

...,谢谢了var spr:laya.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters =...

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

620. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 68%]

...varying vec2 v_Texcoord0; varying vec3 v_Normal; uniform sampler2D u_AlbedoTexture; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的...

来源: Laya2.0_文档 发布时间: 20210715