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

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

761. 注册宏定义与使用宏(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 41%]

...static shaderDefines /**注册宏函数**/ static __init__(){ CustomTerrainMaterial.shaderDefines = new Laya.ShaderDefines(Laya.BaseMaterial.shaderDefines); //注册宏定义 CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1 = CustomTerrainMaterial.shaderDefines.registerDefine("CUSTOM_DETAIL_NUM1"); Cu...

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

762. 注册宏定义与使用宏(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 41%]

...static shaderDefines /**注册宏函数**/ static __init__(){ CustomTerrainMaterial.shaderDefines = new Laya.ShaderDefines(Laya.BaseMaterial.shaderDefines); //注册宏定义 CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1 = CustomTerrainMaterial.shaderDefines.registerDefine("CUSTOM_DETAIL_NUM1"); Cu...

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

763. 3D粒子编辑模块 · LayaAir3.0文档 · LAYABOX [ 41%]

...ale In Lightmap:调整特定物体在最终LightMap中的像素密度。 Materials:用来渲染粒子的材质 Render Mode:如何从图形图像(或网格)生成渲染图像。 1,Billboard:将粒子渲染为广告牌,永远面向摄像机 2,Stretched Billboard:粒子面向摄像...

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

764. 注册宏定义与使用宏(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 41%]

...ines /**注册宏函数**/ public static function __init__(){ CustomTerrainMaterial.shaderDefines = new Laya.ShaderDefines(Laya.BaseMaterial.shaderDefines); //注册宏定义 CustomTerrainMaterial.SHADERDEFINE_DETAIL_NUM1 = CustomTerrainMaterial.shaderDefines.registerDefine("CUSTOM_DETAIL_NUM1"); Cu...

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

765. 高级应用-Laya3D与网页混合 [ 41%]

...re.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; imp...

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

766. 射线检测-射线检测 [ 41%]

...ne.addChild(new Laya.MeshSprite3D(sphereMesh)); var mat = new Laya.StandardMaterial(); mat.albedo = new Laya.Vector4(1, 1, 1, 0.5); mat.renderMode = 5; sphereSprite3d.meshRender.material = mat; Laya.timer.frameLoop(1, this, checkHit); } var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vect...

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

767. Sprite3D-Sprite3D克隆 [ 40%]

...ya.d3.core.MeshSprite3D; import laya.d3.core.Sprite3D; import laya.d3.core.material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; imp...

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

768. 高级应用-闪光 [ 40%]

...hild(new Laya.Glitter()); var glitterTemplet = glitter.templet; var glitterMaterial = glitter.glitterRender.sharedMaterial; glitterMaterial.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/layabox.png"); glitterMaterial.albedo = new Laya.Vector4(1.3, 1.3, 1.3, 1); glitterTemplet.lifeTime =...

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

769. 【Laya2.1BUG】 给view设置runtime后,类型是any [ 39%]

...以如何设置,让他每次滑动,只能固定的值。 Laya3D里的material可以设置flat shading么 关于同为object层,层级设置无效的问题 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 设置pivot后,精灵位置...

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

770. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 39%]

.../ console.log(t); } } private onCallBack(){ var mater = new Laya.BlinnPhongMaterial(); //new Laya.UnlitMaterial(); //Laya.BlinnPhongMaterial(); // const x2 = new Uint8Array(data); // let p = new window['PNG'](x2); // let getData = p.decode(); let texture:Laya.Texture2D = new Laya.Texture2D(544,960);...

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