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

大约有 284 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0042 秒)

41. PBRStandardMaterial材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 82%]

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

42. DataTexture2D是做什么用的 [ 82%]

DataTexture2D是做什么用的 我用base64的数据用 var _texture2d:DataTexture2D = new DataTexture2D();  _texture2d.onAsynLoaded(null, image); material.diffuseTexture=_texture2d; 没报错,但是贴上去是纯灰色,不是图片 DataTexture2D怎么用? 2018-06-05 添加评论 免费帖...

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

43. laya.resource.Texture2D_API3.0 [ 82%]

...rotected All Inherited Externals Only exported Menu Globals "laya/resource/Texture2D" Texture2D Class Texture2D Texture2D 类用于生成2D纹理。 Hierarchy BaseTexture Texture2D Index Constructors constructor Properties _id destroyedImmediately lock name url uuid DEBUG TEXTURE2D blackTexture erro...

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

44. Failed to execute 'texImage2D怎么处理? [ 81%]

Failed to execute 'texImage2D怎么处理? 我用 var _texture2d:Texture2D = new Texture2D(); _texture2d.onAsynLoaded(null, image); image是一个base64数据, 然后就报下面的错误 "Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signatur...

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

45. 材质-BlinnPhong-法线贴图 [ 81%]

...Sprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private scene:Laya.Scen...

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

46. 材质-BlinnPhong-高光贴图 [ 81%]

....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 scene:Laya.Scene;...

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

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

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

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

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

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

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

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

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