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

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

161. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 46%]

...rdMaterial(); //材质加载漫反射贴图 material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); //为模型赋材质(单个材质可赋给多个模型) sphere.meshRender.material = material; box.meshRender.material = material; //旋转方向与角度设置 var vect:Laya.Vector3 = n...

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

162. 描边Shader,使用了两个Pass [ 45%]

...vec2 v_Texcoord; uniform sampler2D u_Texture; void main() { gl_FragColor = texture2D(u_Texture, v_Texcoord); }` outlineShader.addShaderPass(outline_vs, outline_ps) outlineShader.addShaderPass(base_vs, base_ps) this.setShaderName("OutlineShader") this.getRenderState(0).cull = 1 } set diffuseTexture (...

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

163. rigidBody.applyForce 物体不会移动 [ 44%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load( "res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) { material.albedoTexture = tex; }) ); box.meshRenderer.material = material; //设置文本显示框位置 this.text.x = Laya.stage.wi...

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

164. laya.d3.core.scene.Scene [ 43%]

...显示区域,不包括子对象。 Sprite  getlightmaps():Vector.<Texture2D> 获取光照贴图。 Scene getMousePoint():Point获得相对于本对象上的鼠标坐标信息。Sprite  getRenderQueue(index:int):RenderQueue 获得某个渲染队列。 Scene  getScriptByIndex(index:int)...

来源: laya_api 发布时间: 20170929

165. laya.d3.core.scene.Scene3D [ 43%]

...显示区域,不包括子对象。 Sprite  getlightmaps():Vector.<Texture2D> 获取光照贴图浅拷贝列表。 Scene3D getMousePoint():Point获得相对于本对象上的鼠标坐标信息。Sprite getRepaint():intSprite getSelfBounds():Rectangle 获取本对象在自己坐标系的...

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

166. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 42%]

...if #include "Sprite2DFrag.glsl"; void main() { clip(); vec4 textureColor = texture2D(u_baseRender2DTexture, v_texcoord); // 计算渐变因子 float gradientFactor = dot(v_texcoord, normalize(u_gradientDirection)) * 0.5 + 0.5; // 混合渐变颜色 vec4 gradientColor = mix(u_gradientStartColor, u_gr...

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

167. laya.ui.Tree_API3.0 [ 39%]

...number, canvasHeight: number, offsetX: number, offsetY: number, rt?: RenderTexture2D | null): Texture | RenderTexture2D Inherited from Text.drawToTexture Defined in laya/display/Sprite.ts:1259 绘制到一个Texture对象 Parameters canvasWidth: number canvasHeight: number offsetX: number offsetY: n...

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

168. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 39%]

...dardMaterial = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material; //加载3D资源 Laya.loader.create(["res/LayaScene_girl/girl.lh"],Laya.Handler.create(this,this.on3DComplete)); } /*加载3D资源完成回调*/ private ...

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

169. [BUG]刚体约束问题,移动后约束混乱! [ 39%]

...0);     var planeMat = new Laya.BlinnPhongMaterial();     Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) {       planeMat.albedoTexture = tex;     }));     //设置纹理平铺和偏移     var tilingOffset = pl...

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

170. 自定义3D Shader · LayaAir3.4 · 引擎文档 · LAYABOX [ 38%]

...form变量。 3.1 Uniform常见变量类型 Uniform变量的常见类型:Texture2D,Color,Vector2,Vector3,Vector4,Bool,Float,Matrix4x4,TextureCube Texture2D用于2D纹理采样的图片类型,图片本地支持格式:JPG,PNG Color 颜色类型,为四个Float类型组成的...

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