大约有 799 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)
Laya_社区(596) Laya2.0_文档(68) Laya3.0_api(47) laya_api(29) Laya_示例(24) Laya2.0_api(24) Laya3.0_文档(11)
...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
...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
...ale In Lightmap:调整特定物体在最终LightMap中的像素密度。 Materials:用来渲染粒子的材质 Render Mode:如何从图形图像(或网格)生成渲染图像。 1,Billboard:将粒子渲染为广告牌,永远面向摄像机 2,Stretched Billboard:粒子面向摄像...
来源: Laya3.0_文档 发布时间: 20240117
...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
...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
...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
...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
...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
...以如何设置,让他每次滑动,只能固定的值。 Laya3D里的material可以设置flat shading么 关于同为object层,层级设置无效的问题 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 设置pivot后,精灵位置...
来源: Laya_社区 发布时间: 20190531
.../ 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