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

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

401. 动画-新版骨骼动画 [ 62%]

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

402. 3D阴影无法渲染出来 [ 62%]

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

403. Mesh网格-自定义网格 [ 62%]

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

404. LayaFlash开发Stage3D需要注意哪些问题? [ 62%]

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

405. 报错:找不到基类,按照laya社区的解答做了,但是导致了另外一个类和接口出现一样的错 [ 62%]

...;             txt.text = "HelloLayaBox";             txt.color = "#ff0000";             txt.fontSize = 66;             txt.bold = true;                          txt.stroke = 5;//字体描边             txt.strokeColor = "#ffffff";    ...

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

406. laya.d3.shader.Shader3D_API3.0 [ 62%]

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

407. 材质-BlinnPhong-反射贴图 [ 61%]

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

408. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 61%]

...式 text:"请修改掉默认的配置", //需要绘制的文本 color:"#000000", //文字的颜色 backgroundColor:"#ffffff", //背景颜色 }; //将传入的配置覆盖掉默认配置 if(!!options && typeof options === "object"){ for(var i in options...

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

409. 加载-销毁Texture使用的图片资源 [ 61%]

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

410. 材质-BlinnPhong-高光贴图 [ 61%]

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