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

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

581. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 69%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

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

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

583. laya.particle.Particle2D [ 69%]

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

来源: laya_api 发布时间: 20170929

584. 关联shader的uniform(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 69%]

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

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

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

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

586. [LayaAirIDE3]【工具分享】免费图集打包工具, 替代 TexturePacker [ 69%]

[LayaAirIDE3]【工具分享】免费图集打包工具, 替代 TexturePacker 游戏开发总会遇到图片打包需求,texture packer又贵交互还不丝滑,于是我们给大家做了一个比texture packer功能更全更丝滑的免费图片打包工具 体验链接:Flint Texture Packer...

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

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

...,谢谢了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

588. 材质-BlinnPhong-高光贴图 [ 69%]

...nedMeshSprite3d.skinnedMeshRender.materials[i]; //高光贴图 mat.specularTexture = Laya.Texture2D.load(this.specularMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { dude1.transform.rotate(this.rotation); dude2.transform.rotate(this.rotation); }); }class BlinnPhong_SpecularMap { private sc...

来源: Laya_示例 发布时间: 20260303

589. laya.ani.bone.Skeleton [ 69%]

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

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

590. 3d导入粒子效果报错 [ 69%]

...anager:unknown file(res/partical1/Assets/IGSoft_Tools/FXMaker/ToolResource/Texture/MapGrid.psd) extension with: psd. at LoaderManager.__proto._create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs/laya.core.js:13120:11) at LoaderManager.__proto.create (file:///C:/Users/borui/Desktop/Cube3D/bin/libs...

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