大约有 1,073 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0055 秒)
Laya_社区(567) Laya3.0_api(207) Laya2.0_文档(82) Laya_示例(59) laya_api(46) Laya2.0_api(44) Laya2.0_示例(41) Laya3.0_文档(27)
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(0.7, 0.6, 0.6); var plane = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zombie/new/Plane.lh")); var zombie = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/Zom...
来源: Laya_示例 发布时间: 20241118
...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight.shadowResolution = 2048; directionLight.shadowPSS...
来源: Laya_社区 发布时间: 20170809
...directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, -1); //平面 var plane = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(6, 6, 10, 10))); //正方体 var box = scene.addChi...
来源: Laya_示例 发布时间: 20241118
...ufferFormat.FLOAT_2); //[IF-JS]} //[IF-JS]loc2=pro.getAttributeLocation("a_color"); //[IF-JS]if(loc2 != null){ //[IF-JS] context.setVertexBufferAt(loc2, mVertexBuffer, VertexData.COLOR_OFFSET, Context3DVertexBufferFormat.FLOAT_4);3.Stage3D的CullMode与WebGL的CullMode是相反的 如果程序内...
来源: Laya_社区 发布时间: 20151221
...; txt.text = "HelloLayaBox"; txt.color = "#ff0000"; txt.fontSize = 66; txt.bold = true; txt.stroke = 5;//字体描边 txt.strokeColor = "#ffffff"; ...
来源: Laya_社区 发布时间: 20171025
...IAL PERIOD_SCENE PERIOD_SPRITE RENDER_STATE_BLEND RENDER_STATE_BLEND_CONST_COLOR RENDER_STATE_BLEND_DST RENDER_STATE_BLEND_DST_ALPHA RENDER_STATE_BLEND_DST_RGB RENDER_STATE_BLEND_EQUATION RENDER_STATE_BLEND_EQUATION_ALPHA RENDER_STATE_BLEND_EQUATION_RGB RENDER_STATE_BLEND_SRC RENDER_STATE_BLEND_SRC_...
来源: Laya3.0_api 发布时间: 20231102
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.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...
来源: Laya_示例 发布时间: 20241118
...式 text:"请修改掉默认的配置", //需要绘制的文本 color:"#000000", //文字的颜色 backgroundColor:"#ffffff", //背景颜色 }; //将传入的配置覆盖掉默认配置 if(!!options && typeof options === "object"){ for(var i in options...
来源: Laya_社区 发布时间: 20180814
...lignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.init(); //显示性能统计信息 Stat.show(); } /** * 初始化场景 */ GameMain.prototype.init = function () { //创建背景 this.spBg = Sprite.fromImage(this.PathBg); Laya.stage.addChild(this.spB...
来源: Laya_示例 发布时间: 20241118
...; directionLight.direction = new Laya.Vector3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); var completeHandler = Laya.Handler.create(this, onComplete); Laya.loader.create("../../res/threeDimen/skinModel/dude/dude.lh", completeHandler); function onComplete() { var dude1 = this.scen...
来源: Laya_示例 发布时间: 20241118