大约有 239 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
Laya_社区(111) Laya3.0_api(65) Laya2.0_文档(30) Laya_示例(19) Laya3.0_文档(9) laya_api(2) Laya2.0_api(2) Laya2.0_示例(1)
... 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
...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
...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
...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
...显示区域,不包括子对象。 Sprite getlightmaps():Vector.<Texture2D> 获取光照贴图浅拷贝列表。 Scene3D getMousePoint():Point获得相对于本对象上的鼠标坐标信息。Sprite getRepaint():intSprite getSelfBounds():Rectangle 获取本对象在自己坐标系的...
来源: Laya2.0_api 发布时间: 20190513
...显示区域,不包括子对象。 Sprite getlightmaps():Vector.<Texture2D> 获取光照贴图。 Scene getMousePoint():Point获得相对于本对象上的鼠标坐标信息。Sprite getRenderQueue(index:int):RenderQueue 获得某个渲染队列。 Scene getScriptByIndex(index:int)...
来源: laya_api 发布时间: 20170929
...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
...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
...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
...。 MeshTerrainSprite3D createFromMeshAndHeightMap(mesh:Mesh, texture:Texture2D, minHeight:Number, maxHeight:Number, name:String = null):MeshTerrainSprite3D[static] 从网格创建一个TerrainMeshSprite3D实例、图片读取高度图属性。 MeshTerrainSprite3D destroy(destroyChild:Boolean = ...
来源: laya_api 发布时间: 20170929