- 博客(5)
- 收藏
- 关注
原创 Unity自定义shader——多光源、阴影
在渲染设置中,除了设置Pass的标签外,还使用了#pragma multi_compile_fwdbase和#pragma multi_compile_fwdadd的编译指令,以得到我们在shader中使用光照衰减等正确的光照变量。一个Base Pass仅会执行一次(定义了多个Base Pass的情况除外),而一个Addtional Pass会根据影响该物体的其他逐像素光源的数目而多次调用,即每个逐像素光源会执行一次Addtional Pass。,防止覆盖Base Pass中的光照结果。
2023-03-06 13:09:01
985
原创 UE4找不到Set Physics Linear Velocity
在4.26版本实现官方教程实例时找不到这个节点解决方法:先创建另一个脚本,把节点写好再用Construction Script调用脚本
2021-07-26 16:40:13
679
1
原创 UE4场景灯光太亮
Project Settings > Engine > Rendering > Default Settigs > Auto Exposure 取消勾选
2021-07-24 15:08:37
2234
原创 lighting need to be rebuilt
1.Open 'World Settings'.2. Goto 'Lightmass' category.3. Check 'Force No Precomputed Lighting'.4. A popup will appear. Press 'OK'.5. Press 'Build All' or 'Build Lighting Only'. Static Lighting will be crack. That's OK.6. Save the map.7. Reload the map
2021-07-24 15:05:54
255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人