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

大约有 307 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

191. 关联shader的uniform(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 51%]

...e; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的基类。Material的_shaderValues:ShaderData 就是材质的属性。ShaderData是...

来源: Laya2.0_文档 发布时间: 20210715

192. 场景环境反射(TypeScript-3D基础(TS)-LayaAir3D之场景渲染配置) [ 51%]

...otate(new Laya.Vector3(-90, 0, 0), false, false); })); //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Laya.Handler.create(null, function(tex) { //实例PBR材质 var pbrMat = new Laya.PBRStandardMaterial(); //开启该材质的反射 pbrMat.enableReflection = true; //设置材...

来源: Laya2.0_文档 发布时间: 20210715

193. 场景环境反射(JavaScript-3D基础(JS)-LayaAir3D之场景渲染配置) [ 51%]

...量高点,反射效果更明显 pbrMat.metallic = 1; //加载纹理 Laya.Texture2D.load("res/threeDimen/pbr/jinshu.jpg", Handler.create(null, function(tex){ //pbrMat.albedoTexture = tex; teapot.meshRenderer.material = pbrMat; })); ``` ![](img/5.png)(图5)

来源: Laya2.0_文档 发布时间: 20210715

194. Sprite3D-Sprite3D加载 [ 51%]

...laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; import laya.display.Stage; import laya.events.Event; import laya.resource.Texture; import laya.util...

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

195. 微信小游戏wxmin图片加载有点问题 [ 50%]

...(3) var boxMat = new Laya.StandardMaterial(); boxMat.diffuseTexture = Laya.Texture2D.load("https://s2.d2scdn.com/2018/1/2 ... 6quot;); box.meshRender.material = boxMat; // var ape = new Laya.Sprite() // Laya.stage.addChild(ape) // ape.loadImage('https://s2.d2scdn.com/2018/1/2/474ebb47-f3af-4426-bc07...

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

196. 官方技术文档中的问题 [ 50%]

...var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); box.meshRender.material = material;  } return LayaAir3D; } ());  LayaAir3D(); 这个是最开始的基本demo 你看看代码少了什么 2018-06-05 0 1 分享 微博 QZONE 微信 渔歌 ...

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

197. rigidBody.applyForce 物体不会移动 [ 50%]

...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

198. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 50%]

...如图三),代码如下: public drawScreenshot(): void { if (!this.tempTexture2D) { this.tempTexture2D = new Laya.Texture2D(1280,720); } if (!this.tempTexture) { this.tempTexture = new Laya.Texture(this.tempTexture2D); } // Laya.timer.once(110, this, function(){ let cans = Laya.Browser.document....

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

199. 官方DynamicBatchTest照做为什么动态合不了批? [ 50%]

...3(-40, 0, 0), true, false); camera.addComponent(CameraMoveScript);   Laya.Texture2D.load("res/threeDimen/layabox.png", Laya.Handler.create(this, function (tex) { var radius = new Laya.Vector3(0, 0, 1); var radMatrix = new Laya.Matrix4x4(); var circleCount = 50;   var boxMesh = Laya.PrimitiveMesh.c...

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

200. 3d下阴影渲染问题求解 [ 50%]

...var material = new Laya.StandardMaterial(); material.diffuseTexture = Laya.Texture2D.load("res/layabox.png"); material.albedo = new Laya.Vector4(1,0,1,1); box.meshRender.material = material; box.meshRender.receiveShadow = true; box.meshRender.castShadow = true; poolBox.push(box); } } }, creatPerson:...

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