大约有 12 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0032 秒)
....6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight.shadowResolution = 2048; directionLight.shadowPSSMCount = 1; directionLight.shawowPCFType = 3; box.meshRender.receiveShadow = true; sphere.meshRender.castShadow...
来源: Laya_社区 发布时间: 20170809
... 具体的: Shader error in 'LayaAir3D/BlinnPhong': invalid subscript '_ShadowCoord' 'UnityComputeForwardShadows': no matching 3 parameter function at Assets/LayaAir3D/LayaShader/CGIncludes/LayaBlinnPhongFA.cginc(104) (on glcore) Compiling Vertex program with DIRECTIONAL SHADOWS_SCREEN DisableLigh...
来源: Laya_社区 发布时间: 20180306
...tureUrl); instance.meshRender.material = material; instance.meshRender.castShadow = true; instance.meshRender.receiveShadow = true; instance.volume = { 'x': x, 'y': y, 'z': z } prevBox = currentCube; currentCube = instance; return instance; } //初始化引擎 Laya.MiniAdpter.init(); Laya3D.init(0, ...
来源: Laya_社区 发布时间: 20180402
...r in 'LayaAir3D/Mesh/PBR(Specular)': undeclared identifier 'UnityDecodeCubeShadowDepth' at /Program Files/Unity/Editor/Data/CGIncludes/UnityShadowLibrary.cginc(98) (on d3d11) Compiling Vertex program with POINT SHADOWS_CUBE SHADOWS_SOFT EnableReflection LIGHTMAP_OFF Platform defines: UNITY_ENABLE_RE...
来源: Laya_社区 发布时间: 20190518
...hader报错。 Shader error in 'LayaAir3D/BlinnPhong': invalid subscript '_ShadowCoord' 'unitySampleShadow': no matching 1 parameter function at Assets/LayaAir3D/LayaShader/CGIncludes/LayaBlinnPhongFA.cginc(104) (on d3d11) Compiling Vertex program with DIRECTIONAL SHADOWS_SCREEN LIGHTMAP_ON DisableL...
来源: Laya_社区 发布时间: 20180224
...rection = new Laya.Vector3(-1, -1, 2); //灯光开启阴影 directionLight.shadow = true; //可见阴影距离 directionLight.shadowDistance = 300; //生成阴影贴图尺寸 directionLight.shadowResolution = 2048; //生成阴影贴图数量 directionLight.shadowPSSMCount = 1; //模糊等级,越大...
来源: Laya_社区 发布时间: 20180717
....specularColor = new Laya.Vector3(0, 0.5, 0.5); //添加灯光投影 light.shadow=true; //产生投影的范围(如过小将不会产生投影) light.shadowDistance=45; //生成阴影贴图数量 light.shadowPSSMCount = 1; //模糊等级,越大越高,效果更好,更耗性能 light.shadowPCFTy...
来源: Laya_社区 发布时间: 20180307
...方体上并没有出现阴影。DEMO和效果图已上传。 附件 : --> ShadowTest.rar 2018-03-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: a503807636 // 程序入口 class LayaAir...
来源: Laya_社区 发布时间: 20180302
...rial = material;后插入如下代码: // 自定义内容 directionLight.shadow = true; box.meshRenderer.castShadow = true; box.meshRenderer.receiveShadow = true;3. F6运行,渲染正常 4. 打包发布并导入微信小游戏工具,使用基础库2.6.6 5. iOS扫码启动,渲染正常 6. And...
来源: Laya_社区 发布时间: 20190423
...t") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index++) { var a = 0.05; var b = 0.2; var c = 0.03; var pos = new L...
来源: Laya_社区 发布时间: 20191223