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

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

151. 关于平行光渲染投影问题,求解惑 [ 52%]

...rdMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; } } new LayaAir3D(); 2018-03-02 1 1 分享 微博 QZONE...

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

152. Sprite3D-Sprite3D变换 [ 51%]

...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...

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

153. 照相机-正交相机 [ 51%]

...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.d3.utils.Utils3D; import laya.display.Stage; import laya.events.Event; import laya.reso...

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

154. 材质的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之Material材质) [ 51%]

...纹理 pbrTexture = Loader.getRes("res/threeDimen/texture/earth.png") as Texture2D; //为PBRStandard材质设置漫反射贴图 pbrStandardMaterial.albedoTexture = pbrTexture; //修改导出球的材质 sphere.meshRenderer.material = pbrStandardMaterial; ``` ![](img/5.png)(图5) ### 3.是否能接...

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

155. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 51%]

...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javascript import OutlineFS from "../customShader/outline.fs"; import OutlineVS from "....

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

156. ShaderPass介绍(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 50%]

...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javascript var OutlineVS:String = __INCLUDESTR__("../customShader/outline.vs"); var Out...

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

157. 3d资源释放的问题 [ 49%]

...景里,3d场景里,3d场景里,我先dispose或者destory掉了某个texture2d,然后我尝试再去加载显示这张图,怎么也显示不了,具体代码如下: 这个函数尝试创建一个lh然后显示出来,然后删除同时清理一些资源,第二次调用这个函数的...

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

158. laya.d3.core.scene.Scene3D_API3.0 [ 49%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...

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

159. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 49%]

...分享 微博 QZONE 微信 zfree 赞同来自: 新版本untiy UnityEngine.Texture2D.EncodeToPNG 去掉了见截图 我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图 导出工具1.6.1,u...

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

160. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 49%]

...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private ...

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