大约有 51 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0025 秒)
... var mat:PBRStandardMaterial = new PBRStandardMaterial(); //反射贴图 Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Handler.create(this, function(texture:Texture2D):void { mat.albedoTexture = texture; })); //法线贴图...
来源: Laya2.0_文档 发布时间: 20210714
...tandardMaterialDemo))。 ```typescript setTexture(){ //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function (texture) { this.mat.albedoTexture = texture; })); //法线贴图 L...
来源: Laya2.0_文档 发布时间: 20210715
...:PBRStandardMaterial = new Laya.PBRStandardMaterial(); //反射贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Te...
来源: Laya2.0_文档 发布时间: 20210714
...; var WebGL = Laya.WebGL; var texture1 = "../../res/apes/monkey2.png"; var texture2 = "../../res/apes/monkey3.png"; var flag = false; var ape; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; ...
来源: Laya2.0_文档 发布时间: 20210715
...3D纹理的使用 3D的png或者jpg格式纹理加载,是使用的`Laya.Texture2D.load()`来加载纹理资源,如果要使用纹理压缩格式,则需要使用`Laya.loader.load()`来加载纹理资源。 示例代码如下所示: ```typescript //检测安卓平台 if (Laya.Browser.onAndroid...
来源: Laya2.0_文档 发布时间: 20210714
...Texture { private texture1: string = "../../res/apes/monkey2.png"; private texture2: string = "../../res/apes/monkey3.png"; private flag: boolean = false; private ape: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya....
来源: Laya2.0_文档 发布时间: 20210715
# Texture2D的GPU纹理压缩的使用 ###### *version :2.1.0 Update:2019-5-25* 在2.0正式版中已经支持纹理这个功能了。Unity导出时,在工具面板勾选平台对应的平台导出即可。 (图1) **IOS 与 Android** 支持纹理压缩功能,由于安卓和IOS的...
来源: Laya2.0_文档 发布时间: 20210714
# Texture2D的GPU纹理压缩的使用 ###### *version :2.1.0 Update:2019-5-25* 在2.0正式版中已经支持纹理这个功能了。Unity导出时,在工具面板勾选平台对应的平台导出即可。 (图1) **IOS 与 Android** 支持纹理压缩功能,由于安卓和IOS的...
来源: Laya2.0_文档 发布时间: 20210715
# Texture2D的GPU纹理压缩的使用 ###### *version :2.1.0 Update:2019-5-25* 在2.0正式版中已经支持纹理这个功能了。Unity导出时,在工具面板勾选平台对应的平台导出即可。 (图1) **IOS 与 Android** 支持纹理压缩功能,由于安卓和IOS的...
来源: Laya2.0_文档 发布时间: 20210714
... material:BlinnPhongMaterial = new BlinnPhongMaterial(); //漫反射贴图 Texture2D.load("res/threeDimen/texture/earth.png", Handler.create(this, function(texture:Texture2D):void { //设置材质纹理 material.albedoTexture = texture; })); //material.albedoTexture earth2.meshRenderer.material = ma...
来源: Laya2.0_文档 发布时间: 20210714