纹理/着色 Fast Mobile Planar Reflection 1.3 快速实时平面反射

QQ图片20211006161049.jpg













Works with Unity versions higher than 2017.1.0f
LWRP works only with Unity versions higher than 2019.1.0f1
URP works only with Unity versions higher than 2019.3.0f3

VR works for single pass and multi pass rendering

Fastest Solution on the market.


NOTE!!! If you are using planar reflection for PC, in case of usage Normal maps for planar reflected plane's material - set it as DEFAULT texture(by default unity will try to set its type as Nomral map)


***UPDATE***
*Unity Fogs supported
*URP/LWRP now support additional lights
*Shadows added
*Blurry Reflections
*Masking - to reflect certain areas

This asset consists of shaders for applying the Real-time Planar Reflection to the scene. The quality was one of the most main goals during the development, despite that, the main focus was targeted towards the performance on mobile devices.

Note that the effect works only in runtime. Additionally, as it follows from the name, the effect works properly with plane objects

SHADERS

* Unlit - Modified and optimized version of standart mobile Unlit shader.
* Diffuse VertexLit - Modified and optimized version of standart mobile Diffuse shader, where the most of the calculations are made on vertex shader.
* Specular VertexLit - Modified and optimized version of standart mobile Specular shader, where the most of the calculations are made on vertex shader. Note that the specular map should be in Alpha channel of the Main Texture.
* Diffuse PixelLit - Modified and optimized version of standart mobile Diffuse shader, where the most of the calculations are made on fragment shader.
* Specular PixelLit - Modified and optimized version of standart mobile Specular shader, where the most of the calculations are made on fragment shader. Note that the specular map should be in Alpha channel of the Main Texture.
*Bumped Diffuse - Modified and optimized version of standart mobile Bumped Diffuse shader. Distort Amount value used to distort the reflecation by the Normal Map applied to the plane
*Bumped Specular - Modified and optimized version of standart mobile Bumped Specular shader. Note that the specular map should be in Alpha channel of the Main Texture. Distort Amount value used to distort the reflecation by the Normal Map applied to the plane

NOTE!!!
The shaders were tested on the test scene running on the low-end device Meizu M2 Note. During the tests, there was just a minor difference between the built-in mobile shaders and the shaders with the reflection. It ran between 50-55 fps on the scene containing:
-30 different gameObjects,
-27 different Materials,
-22 different Textures,

2022-4-19 17:00 上传
文件大小:
未知
下载次数:
0
附件售价:
9 钥匙  购买记录
本地下载 立即购买

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册