大约有 73 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
...camera2:Camera; private var x:Number = 0; private var y:Number = 0; public function D3Base_TargetTexture() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.screenMode = Stage.SCREEN_NONE; Stat.show(); loadUI(); var scene:Scene = Laya.stage.addChild(new Scene()) as Scene...
来源: Laya_社区 发布时间: 20170209
...is, onEnvDescLoaded, [envinfo, '../../res/threeDimen/env/' + env + '/'])); function onEnvDescLoaded(envinfo, envpath) { var envinfoobj = Laya.loader.getRes(envinfo); var camera = new Laya.Camera(0, 0.1, 1000); if (envinfoobj.ev != undefined) camera._shaderValues.setValue(Laya.BaseCamera.HDREXPOSURE,...
来源: Laya_示例 发布时间: 20261113
...false); Laya.Sprite3D.load( "res/test_mesh2.lh", Laya.Handler.create(this, function (sprite: Laya.Sprite3D): void { var clonesprite: Laya.Sprite3D = sprite.clone() as Laya.Sprite3D; scene.addChild(clonesprite) as Laya.Sprite3D; clonesprite.transform.localScale = new Laya.Vector3( 0.01125, 0.01125, 0...
来源: Laya_社区 发布时间: 20220721
让 CylinderMesh 支持椎体 function CylinderMesh(radius,radius2,height,slices){创建出下面半径大小 修改第二个循环结构, 也就是柱状顶点绘制 __proto.recreateResource=function(){ this._numberVertices=(this._slices+1+1)+(this._slices+1)*2+(this._slices+1+1); this._numb...
来源: Laya_社区 发布时间: 20180113
...不一样,也没有贴图 代码如下:/* * name; */ var scene = (function () { function scene() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 var scene = Laya.Scene....
来源: Laya_社区 发布时间: 20180108
...xture2D.load("res/threeDimen/Physics/rocks.jpg", Laya.Handler.create(this, function (tex) { this.mat1.albedoTexture = tex; })); Laya.Texture2D.load("res/threeDimen/Physics/plywood.jpg", Laya.Handler.create(this, function (tex) { this.mat2.a...
来源: Laya_社区 发布时间: 20191009
...a.Vector3(0.2, 0.2, 0.2); sprite3D.once(Laya.Event.HIERARCHY_LOADED, null, function(sprite) { //console.log(scene.numChildren+","+sprite._childs.length); setMeshParams(sprite, Laya.StandardMaterial.RENDERMODE_OPAQUE, new Laya.Vector4(3.5, 3.5, 3.5, 1.0), new Laya.Vector3(0.6823, 0.6549, 0.6352), new...
来源: Laya_社区 发布时间: 20170707
...new Laya.Vector4(0, 1, 0, 1); var index = 0; Laya.timer.frameLoop(1, this, function () { index +=1; layaMonkey.meshRender.material.transformUV.offset = new Laya.Vector2(index 0/100.0, index 0/100.0); layaMonkey.active = !debugModel; layaMonkey.transform.rotate(rotation, false); ...
来源: Laya_社区 发布时间: 20171127
...自: 附件是 加载demo 代码非常少 可以重现我说的问题 function initLaya() { console.log('Laya.version:' + Laya.version); //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(750, 1334, true); //适配模式 Laya.stage.scaleMode = 'fixedwidth'; Laya.st...
来源: Laya_社区 发布时间: 20180426
...Component(CameraMoveScript); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { setCustomMaterial(scene.getChildAt(2)); }); function setCustomMaterial(spirit3D) { if (spirit3D instanceof Laya.MeshSprite3D) { var meshSprite3D = spirit3D; var customMaterial = new CustomTerrainMaterial(); cust...
来源: Laya_示例 发布时间: 20261113