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

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

51. 写了个边缘光的自定义shader,有很多问题,帮忙看一下 [ 88%]

...seTexture为什么不起作用?? customMaterial.setDiffuseTexture(Laya.Texture2D.load("qiu/Texture2.png")); @asanwu 2017-05-25 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: 1.fbx暂时停止维护,现在全部的精力投入unity研究开发; 2.可以打开球的材质文件,查...

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

52. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 88%]

texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 export class Texture2dTest { private sprite3D:Laya.Sprite3D; private readonly AllPng:string[] = ["pic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.s...

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

53. laya.d3.shader.pbr.PBRDefaultDFG_API3.0 [ 87%]

...FG Methods DefaultDfgTexture Accessors Static defaultDFG get defaultDFG(): Texture2D set defaultDFG(value: Texture2D): void Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:13 Returns Texture2D Defined in laya/d3/shader/pbr/PBRDefaultDFG.ts:16 Parameters value: Texture2D Returns void Methods Static De...

来源: Laya3.0_api 发布时间: 20231102

54. 怎么给从模型生成的地形TerrainMaterial材质??? [ 87%]

...aterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.load("map2.png"); te...

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

55. 3d文字在浏览器能正常运行,打包后使用时会报错 [ 87%]

...text":No function was found that matched the signature provided   在this.texture2D.loadImageSource(this.cav);报错   this.cav = Laya.Browser.createElement("canvas"); this.cav.width = 256; this.cav.height = 256;  var cxt = this.cav.getContext("2d"); cxt.fillStyle = 'rgb(' + '220' + ',' + '5' + '...

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

56. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 86%]

...HTMLImageElement Laya.loader.fetch( url,"image" ).then((res)=>{ //创建Texture2D var t2d: Texture2D = new Texture2D(res.width, res.height, TextureFormat.R8G8B8A8, false, false, true); t2d.setImageData(res, true, false); //创建Texture var texture: Texture = new Texture(t2d); let sp2:Sprite = ne...

来源: Laya3.0_文档 发布时间: 20230303

57. Laya2.0 的3d截图 [ 86%]

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

58. 射线检测-选取物体 [ 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_示例 发布时间: 20251130

59. laya.d3.resource.models.SkyDome [ 85%]

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

60. 自定义shader-边缘光照shader [ 85%]

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