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

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

91. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 58%]

...色 */ public function get outlineColor() { return this._shaderValues.getVector(MultiplePassOutlineMaterial.OUTLINECOLOR); } public function set outlineColor(value) { this._shaderValues.setVector(MultiplePassOutlineMaterial.OUTLINECOLOR, value); } /** * 获取轮廓宽度。 * @return 轮廓宽度,...

来源: Laya2.0_文档 发布时间: 20210715

92. Config3D_API3.0 [ 57%]

...s:19 是否开启UniformBuffer Static lightClusterCount lightClusterCount: Vector3 = new Vector3(12, 12, 12) Defined in Config3D.ts:47 X、Y、Z轴的光照集群数量,Z值会影响Cluster接受区域光(点光、聚光)影响的数量,Math.floor(2048 / lightClusterCount.z - 1) * 4 为每个Cluster...

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

93. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 57%]

........... if (e.keyCode == 97) { // console.log("a"); let newPos = new Laya.Vector3(this.block.transform.position.x + 0.1, this.block.transform.position.y, this.block.transform.position.z); console.log(newPos.x); this.block.transform.position = newPos; } else if (e.keyCode == 100) { // console.log('d...

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

94. 使用3D摄像机 · LayaAir3.0文档 · LAYABOX [ 57%]

...动插值参数值 public camDepthSmooth: number = 20 public curpos: Laya.Vector3; private delatpos: Laya.Vector3; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 * 此方法为虚方法,使用时重写覆盖即...

来源: Laya3.0_文档 发布时间: 20231214

95. linearVelocity 获取的线速度不正确 [ 56%]

...线速度  获取得到的线速度完全是不正确的       let vectory = new Laya.Vector3(-Math.cos(this.angle) * this.v,0,0);         // this.rigidbody.applyForce(vectory);         this.rigidbody.linearVelocity = vectory;         console.log("施加的线...

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

96. 自定义shader-边缘光照shader [ 55%]

...dChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.85, 1.7)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya...

来源: Laya_示例 发布时间: 20240930

97. 自定义shader-shader预编译 [ 55%]

...light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.resource.models.Mesh; import laya.d3.shader.ShaderCompile3D; import laya.display.Stage; import laya.utils.Stat; import laya.webgl.WebGL; public class ShaderPrecompile { public function ShaderPrecompile...

来源: Laya_示例 发布时间: 20240930

98. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 53%]

...节点也跟随移动 this.layaMonkeyParent.transform.translate(new Laya.Vector3(-0.2, 0, 0); (动图3-2) 通过点击按钮,让子节点移动,可以看到父节点并没有移动 this.layaMonkeySon.transform.translate(new Laya.Vector3(-0.2, 0, 0); 四、克隆 关于克隆,LayaAir3D中...

来源: Laya3.0_文档 发布时间: 20240624

99. 材质-PBRStandard材质 [ 53%]

...Textures/Barrel_Occlusion.png'); //反射颜色 mat.albedoColor = new Laya.Vector4(1, 1, 1, 1); //光滑度缩放系数 mat.smoothnessTextureScale = 1.0; //遮挡贴图强度 mat.occlusionTextureStrength = 1.0; //法线贴图缩放洗漱 mat.normalScale = 1; //光滑度数据源:从金属度贴图/...

来源: Laya_示例 发布时间: 20240930

100. 3D物理编辑 · LayaAir3.0文档 · LAYABOX [ 52%]

...移速度越快。 (动图1-2) angulaVelocity属性的值是3维向量Vector3类型值,Bullet使用欧拉角来描述物体的旋转,3D向量的每个分量代表绕x、y、z轴旋转的速度,单位是弧度/秒。动图1-2,就是在x轴分别设置了3.14与31.4的对比效果。 angul...

来源: Laya3.0_文档 发布时间: 20240624