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

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

61. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 69%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

62. 射线检测-放置物体 [ 69%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

63. 同时使用雾和粒子系统,粒子的颜色变成雾的颜色 [ 69%]

...if(v_Discard!=0.0)    discard;   #ifdef TINTCOLOR    gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*u_Tintcolor*2.0*v_Color;   #else    gl_FragColor*=texture2D(u_texture,v_TextureCoordinate)*v_Color;   #endif  #else   #ifdef TINTCOLOR    gl_FragColor*=u_Tintcolor*2.0*v_C...

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

64. 同一类型光源互斥的问题报告 [ 68%]

...lbedo = new Laya.Vector4(0.8, 0.8, 0.8, 0); material.diffuseTexture = Laya.Texture2D.load("images/bg03.png"); box.meshRender.material = material; //平面 var plane = sprite3D.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(15, 15, 1, 1))); plane.transform.position = new Laya.Vector3(0, 0, 0); var...

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

65. laya.d3.core.scene.Scene3D [ 68%]

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

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

66. laya.d3.core.scene.Scene [ 68%]

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

来源: laya_api 发布时间: 20170929

67. 分享水波一个shader [ 67%]

...vec2 tuv2 = v_textcoord + vec2(0,u_Time * _NoiseSpeedY); vec2 ouvxy = vec2(texture2D(u_NoiseTex,tuv1).r,texture2D(u_NoiseTex,tuv2).r); ouvxy -= _NoiseBrightOffset; ouvxy *= vec2(_NoiseScaleX, _NoiseScaleY);  vec4 col = texture2D(u_MainTex,v_textcoord + ouvxy); vec3 normal = v_normal; normal.xy += o...

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

68. 材质-BlinnPhong-漫反射贴图 [ 67%]

...Laya.BlinnPhongMaterial(); //漫反射贴图 material.albedoTexture = Laya.Texture2D.load("../../res/threeDimen/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation...

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

69. 射线检测-点击行走 [ 67%]

...var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var meshCollider = plane.addComponent(Laya.MeshCollider); meshCollider.me...

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

70. laya.d3.core.MeshTerrainSprite3D [ 67%]

...。 MeshTerrainSprite3D  createFromMeshAndHeightMap(mesh:Mesh, texture:Texture2D, minHeight:Number, maxHeight:Number, name:String = null):MeshTerrainSprite3D[static] 从网格创建一个TerrainMeshSprite3D实例、图片读取高度图属性。 MeshTerrainSprite3D destroy(destroyChild:Boolean = ...

来源: laya_api 发布时间: 20170929