大约有 861 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0048 秒)
Laya_社区(603) Laya2.0_文档(114) Laya3.0_api(47) laya_api(29) Laya_示例(24) Laya2.0_api(24) Laya3.0_文档(20)
...放,但是在微信浏览器无任何显示。 let mat = new Laya.UnlitMaterial(); mat.albedoTexture = videoNode.videoTexture; this.owner.xxx.getChildByName('Scene3D').getChildByName('Plane').getComponent(Laya.MeshRenderer).sharedMaterial = mat; // 上面代码在3D场景中播放则无任何问...
来源: Laya_社区 发布时间: 20230825
...re.Sprite3D; import laya.d3.core.light.DirectionLight; import laya.d3.core.material.StandardMaterial; import laya.d3.core.render.RenderState; import laya.d3.core.scene.Scene; import laya.d3.graphics.IndexBuffer3D; import laya.d3.graphics.VertexBuffer3D; import laya.d3.math.Quaternion; import laya.d3...
来源: Laya_示例 发布时间: 20250225
...ya.Sprite3D.WORLDMATRIX, Laya.Shader3D.PERIOD_SPRITE], 'u_texture': [CustomMaterial.DIFFUSETEXTURE_ID, Laya.Shader3D.PERIOD_MATERIAL] }; var customShader = Laya.Shader3D.nameKey.add("CustomShader"); var vs = "attribute vec4 a_Position;\n" + "attribute vec2 a_Texcoord;\n" + "uniform mat4 u_MvpMatrix;...
来源: Laya_社区 发布时间: 20170815
...附件 截图如下: 核心代码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } ...
来源: Laya_社区 发布时间: 20180925
...么跨域加载图片 图片添加点击事件 有的不生效 Laya3D里的material可以设置flat shading么 合并小图片 遮罩点击事件 问题状态 最新活动: 2017-12-20 18:15 浏览: 2216 关注: 2 人 kezhiyu • 2017-12-20 17:21 假设,我先有一个sprite1 绘制了一个多边...
来源: Laya_社区 发布时间: 20171220
...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_文档 发布时间: 20250214
...ale In Lightmap:调整特定物体在最终LightMap中的像素密度。 Materials:用来渲染粒子的材质 Render Mode:如何从图形图像(或网格)生成渲染图像。 1,Billboard:将粒子渲染为广告牌,永远面向摄像机 2,Stretched Billboard:粒子面向摄像...
来源: Laya3.0_文档 发布时间: 20250104
...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