我要发帖 回复

管理员

388

主题

8万

积分

0

专家分

兴趣点(最多三项):

Unity引擎
Unreal引擎
CryEngine引擎

私信
发表时间 : 2019-6-24 16:50:09 | 浏览 : 118    评论 : 1
Custom Lens Flares Material
LensFlare_screenshot_00-1920x1080-70f48473ea8fd507e94e9c63955c8f1f.png LensFlare_screenshot_01-1920x1080-e4e953a8ef062550d110667258dc7dfb.png LensFlare_screenshot_02-1920x1080-6b33948229cfb42014dfd36eb65aa158.png LensFlare_screenshot_03-1922x1040-a64f4fe14555dce29cf8bdf582b188d3.png LensFlare_screenshot_04-1928x1048-ea50835f92daf338cd34f096f8083a3d.png 摘要

This realization of the lens flares uses a material (shader) to control lens flares opacity and particle system to render the effect. The material compares values stored in depth buffer with distance to camera for a few points on a screen. In simplest case, it compares depth value for center of a particle with distance from the particle to camera.


技术细节
- Correctly handles overlapping
- Works for all cameras and viewports, independently of FOV and aspect ratio
- Has options to control intensity in relation to size of overlapping area
- Works with split screen
- Doesn't implement any new UObjects in C++
- Runs on GPU side only

The package contains:
- A blueprint to create a light source with attached effect
- Lens Flare master material with various instances and flare texture
- Particle system that can be used as template to customized lens flare effects
- Demo level

下载地址:



Custom Lens Flares Material .txt

890 Bytes, 下载次数: 0

售价: 60 积分  [记录]  [购买]

最近VR访客查看更多↓

手机版|VR开发网 ( 津ICP备18009691号 )|网站地图 统计 网安备12019202000257

GMT+8, 2019-8-25 12:22 AM

返回顶部