大约有 253 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
获取相机renderTexture 作为阴影 的UV 已知:使用正交相机生成阴影贴图,顶底着色器中a_Position, 有个plane接受相机生成的阴影,通过阴影相机计算矩阵乘a_Position获取阴影UV, 混合渲染在plane上 顶点着色器: #if defined(_RECEIVESHA...
来源: Laya_社区 发布时间: 20200229
求问Texture和Texture2D的区别,和使用问题 对用引擎中这两个类的分别不太清楚,有以下几个问题:1、Texture和Texture2D有什么区别?我发现自己用Laya.loader.load的图片或ui加载的就是Texture,加载.ls/.lh自动生成的贴图就是Texture2D 2、...
来源: Laya_社区 发布时间: 20180314
Texture的getPixels()在Android下调用提示is not a function layaAir调试 和 chrome调试 和 android下的字偏移都不一样。社区里一些帖子的回复是自己去做偏移调整。我尝试把fontSize从20~200的label,画到texture,然后去得到第一个像素值不为0...
来源: Laya_社区 发布时间: 20190508
...数据要更少,所以这种天空的性能要更好一些。 Panoramic Texture:天空盒的纹理贴图(一张球形模型对应的贴图) 2.1.1 立方体天空 立方体天空盒用到的6张可以无缝相接的贴图参考,图2-5所示 (图2-5) 2.1.2 球形天空 是一个球形模...
来源: Laya3.0_文档 发布时间: 20251010
关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 自己的问题 2019-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 截图和代码...
来源: Laya_社区 发布时间: 20190508
...veShadow = true; }else{ var unlitMat = new Laya.PBRStandardMaterial(); var texture: Laya.Texture2D = Laya.loader.getRes("Reference/cardtest.png"); unlitMat.albedoTexture = texture; cardOne.meshRenderer.material = unlitMat; cardOne.meshRenderer.castShadow = true; } }真心求教大佬,怎么才能...
来源: Laya_社区 发布时间: 20191223
...sh.lm")));var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.lo...
来源: Laya_社区 发布时间: 20170615
...9, 129)); var terMaterial = new Laya.TerrainMaterial(); terMaterial.diffuseTexture1=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture2=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture3=new Laya.Texture2D.load("map2.png"); terMaterial.diffuseTexture4=new Laya.Texture2D.lo...
来源: Laya_社区 发布时间: 20170620
...tor4`漫反射颜色。 `albedoIntensity:Number` 漫反射强度。 `albedoTexture:BaseTexture` 漫反射贴图。 `enableLighting:Boolean` 是否启用光照。 `normalTexture:BaseTexture` 法线贴图。 `renderMode:int` [write-only] 设置渲染模式。 `shininess:Number` 高光强度,范围为0...
来源: Laya2.0_文档 发布时间: 20210714
RenderTexture: unkonw depth format 版本: Laya 2.0 问题:只要使用遮罩滤镜就会出现 RenderTexture: unkonw depth format,如果遮罩较多,直接崩溃。 2019-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190525