大约有 171 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0042 秒)
...scene.reflectionMode = Scene3D.REFLECTIONMODE_CUSTOM; //天空盒 Material.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Handler.create(null, function(mat:SkyBoxMaterial):void { //获取相机的天空盒渲染体 var skyRenderer:SkyRenderer = camera.skyRenderer; //设置天空盒mesh skyRender...
来源: Laya2.0_文档 发布时间: 20210715
...ight.color = new Laya.Vector3(1, 1, 1); var textureCube = Laya.TextureCube.load("../../res/threeDimen/skyBox/skyBox1/skyCube.ltc"); var skyBox = new Laya.SkyBox(); skyBox.textureCube = textureCube; camera.sky = skyBox; var teapot1 = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/thre...
来源: Laya_示例 发布时间: 20241124
...ectionMode = Laya.Scene3D.REFLECTIONMODE_CUSTOM; //天空盒 Laya.Material.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Laya.Handler.create(null, function(mat){ //获取相机的天空盒渲染体 var skyRenderer = camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = Laya.SkyBox.instan...
来源: Laya2.0_文档 发布时间: 20210715
...载网格 var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.transform.localScale = new Laya.Vector3(0.3, 0.3, 0.3); layaMonkey.transform.rotation = new Laya.Quaternion(0.7071068, ...
来源: Laya_示例 发布时间: 20241124
...ectionMode = Laya.Scene3D.REFLECTIONMODE_CUSTOM; //天空盒 Laya.Material.load("res/threeDimen/skyBox/DawnDusk/SkyBox.lmat", Laya.Handler.create(null, function(mat) { //获取相机的天空盒渲染体 var skyRenderer:SkyRenderer = camera.skyRenderer; //设置天空盒mesh skyRenderer.mesh = Laya....
来源: Laya2.0_文档 发布时间: 20210715
...Normals setPositions setTangents setUVs setVertices destroyUnusedResources load Constructors constructor new Mesh(isReadable?: boolean): Mesh Overrides Resource.__constructor Defined in laya/d3/resource/models/Mesh.ts:196 创建一个 Mesh 实例,禁止使用。 Parameters Default value isReadable: ...
来源: Laya3.0_api 发布时间: 20231115
... Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); loadUI(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene; var camera1:Camera = new Camera(0, 0.1, 100); scene.addChild(camera1); camera1.transform.translate(new Vector3(0, 0.8, 1.5)); camera1.transform.rotate(new...
来源: Laya_社区 发布时间: 20170209
...材质报错 var lineMesh = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("line/lineMesh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTex...
来源: Laya_社区 发布时间: 20170615
...改成地形了,还是报同样的错误 @asanwu var terrain = Laya.Mesh.load("line/lineMesh.lm"); var terrainSprite = scene.addChild(Laya.MeshTerrainSprite3D.createFromMesh(terrain, 129, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2...
来源: Laya_社区 发布时间: 20170620
...scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方法二:预加载,创建为Sprite3D类型 Laya.loader.create("LayaScene_01/Assets/model/love...
来源: Laya_社区 发布时间: 20171109