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

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

121. 自定义2D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...求也是存在的。 目前,LayaAir可以实现自定义2D纹理渲染(Texture2D)和基础图元渲染(Primitive)。 本篇文档属于进阶性文档,在阅读前需要具备Shader的基础知识,可以参考3D着色器文档中的一些概念介绍。 二、结构与应用 2.1 着色器文...

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

122. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 69%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

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

123. 动态阴影被切割了?为啥没有显示完成的阴影 [ 69%]

...var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load(textureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; instance.volume = { 'x': x, 'y': y, 'z': z } prevBox = currentCube; current...

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

124. IDE创建3D示例项目(ActionScript-3D基础(AS3)-快速开始一个LayaAir3D项目) [ 69%]

...false, false); var material:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

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

125. laya2.0 截图功能分享,直接截取屏幕上所有对象 [ 68%]

...戏正常可用 private static _sp: Laya.Sprite = null; private static tempTexture2D: Laya.Texture2D; private static tempTexture: Laya.Texture; /**截图 */ public static drawScreenshot(width, height, x, y) { if (!SwitchHelper.screenDraw) { return null; }  if (!this.tempTexture2D) { this.tempTextur...

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

126. 没有人尝试使用3d物理引擎么 [ 68%]

...t laya.d3.math.RandX; import laya.d3.math.Vector3; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BoxMesh; import laya.d3.resource.models.QuadMesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.utils.Browser; imp...

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

127. laya.d3.core.render.BloomEffect [ 68%]

...dirtIntensity : Number 获取污渍强度。 BloomEffect  dirtTexture : Texture2D = null镜头污渍纹路,用于为泛光特效增加污渍灰尘效果BloomEffect  fastMode : Boolean = false是否开启快速模式。该模式通过降低质量来提升性能。BloomEffect  intensity : Number...

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

128. timer无法执行 [ 68%]

...ball1mat: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();   Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(layabox: Laya.Texture2D): void{ ball1mat.albedoTexture = layabox; })); //ball1mat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); ball1.meshRenderer.material...

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

129. png使用base64显示异常 [ 67%]

...n () { // image.onload = null; // image.onerror = null; // var data = Laya.Texture2D._parse(image); // data._url = "sdfasf" // _this.onLoaded(data); img=HTMLImage.create(image.width,image.height,1); img.loadImageSource(image,true); img._setCreateURL(url); _this.onLoaded(img); }; var url = _this.arra...

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

130. Uint8Array的像素数据在ios中无法改变图片纹理,安卓正常 [ 67%]

...is.test1.width; let height = data.length / 4 / width; let tex2d = new Laya.Texture2D(width, height, 1); tex2d.setPixels(data); this.imgAr.texture.setTo(tex2d); } 附件 : --> demo.zip 2021-01-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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