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

大约有 280 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)

81. 写shader还区分2d,与3d么!看官网是3d的shader例子,有没有2d的shader例子? [ 65%]

...hader3D.PERIOD_SPRITE] }; var customShader: number = Laya.Shader3D.nameKey.add("CustomShader"); var vs: string = "attribute vec4 a_Position;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + "void main(){\n" + "gl_Position...

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

82. laya.d3.core.scene.BoundsOctreeNode [ 65%]

...enter:Vector3) 创建一个 BoundsOctreeNode 实例。 BoundsOctreeNode  add(object:IOctreeObject):Boolean 添加指定物体。 BoundsOctreeNode  getBound():BoundBox 获取包围盒。 BoundsOctreeNode  getCollidingWithBoundBox(checkBound:BoundBox, result:Array):void 获取与指定包围盒...

来源: Laya2.0_api 发布时间: 20190513

83. laya.maths.Vector4_API3.0 [ 65%]

...ativeElement fromArray length lengthSquared setValue toArray writeTo Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Constructors constructor new Vector4(x?: number, y?: number, z?: number, w?: number): Vector4 Defined in laya/maths/Vector...

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

84. laya.maths.Quaternion_API3.0 [ 65%]

...ength lengthSquared normalize rotateX rotateY rotateZ scaling set setValue add createFromAxisAngle createFromMatrix4x4 createFromYawPitchRoll dot forwardLookAt invert lerp lookAt multiply rotationLookAt rotationMatrix slerp Constructors constructor new Quaternion(x?: number, y?: number, z?: number, ...

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

85. laya.d3.math.Vector4_API3.0 [ 65%]

...ativeElement fromArray length lengthSquared setValue toArray writeTo Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Constructors constructor new Vector4(x?: number, y?: number, z?: number, w?: number): Vector4 Defined in laya/d3/math/Vect...

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

86. laya.d3.math.native.ConchVector4_API3.0 [ 64%]

...cessors w x y z Methods clone cloneTo fromArray length lengthSquared Clamp add distance distanceSquared dot equals lerp max min multiply normalize scale subtract transformByM4x4 Constructors constructor new ConchVector4(x?: number, y?: number, z?: number, w?: number): ConchVector4 Defined in laya/d3...

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

87. laya.d3.math.Quaternion_API3.0 [ 64%]

...ength lengthSquared normalize rotateX rotateY rotateZ scaling set setValue add createFromAxisAngle createFromMatrix4x4 createFromYawPitchRoll dot forwardLookAt invert lerp lookAt multiply rotationLookAt rotationMatrix slerp Constructors constructor new Quaternion(x?: number, y?: number, z?: number, ...

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

88. 请教下, 自己写了个渐变色shader, 但是效果始终不对。麻烦大神们看看代码哪里有问题 [ 64%]

...OLOR0,new Laya.Vector4(0,0,1,1)); var customShader = Laya.Shader3D.nameKey.add("GradientShader"); Laya.ShaderCompile3D.add(customShader, vs, ps, attributeMap, uniformMap); this.setShaderName("GradientShader");   2018-03-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

89. Shader预编译解决方案 [ 64%]

...//开启debug编译shader时生成打印shader参数         this._addDebugShaderVariantCollection(compileDefine);          }  debugShader : Laya.Shader debugShader : Laya.SubShader  Laya.ShaderPass -> _addDebugShaderVariantCollection(compileDefine) {      var dbugS...

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

90. 分享:Panel下动态修改子容器宽高并刷新显示! [ 63%]

...置panel的垂直滚动条,方便看出panel的滚动变化 Laya.stage.addChild(panel); var sp:Sprite=new Sprite();//panel的子容器sp sp.graphics.drawRect(0,0,500,1000,"#FF0000"); sp.size(500,1000); panel.addChild(sp); var btnAdd:Button=new Button();//点击按钮,动态添加sp的子对象...

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