找回密码
 立即注册
搜索

[纹理/着色] Fast Mobile LUT( URP , VR , AR , LWRP )1.1手机彩色滤镜

[复制链接]
140 |0
发表于 2023-3-9 14:47:21 | 显示全部楼层 |阅读模式












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
Supports Single-pass and Multi-pass VR
Fastest Solution on the market

NOTE! If you are using 2D lut be sure to set the Anisotropic Texture option to “Per Texture” or “Disabled”
*UPDATE* added 885 LUT maps

This package consists of the shader for applying 2D LUT or 3D LUT on the screen. This solution is currently is the fastest approach in the market, oriented significantly for mobile devices. The shader was tested on the low-end mobile device in the loaded scene in order to optimize the performance:
* 2DLUT - The fastest 2DLUT in the market. Using 2.5D LUT technique which as follows from NVIDIA official tutorials, runs faster than simple 3DLUT, in most cases keeping the same image quality. Runs at 50-58 FPS on low-end mobile device(with proper settings).
* 3DLUT- The fastest 3DLUT in the Asset Store. Completely optimized lut. Runs at 47-58 FPS on low-end mobile device(with proper settings).
In this approach, only LUT maps 256x16 are used for correction. NOTE!!! All the testing was made on low-end mobile device Meizu M2 Note in the scene containing:
-65 different gameObjects,
-68 different Materials,
-57 different Textures,
-1 Directional Light(realtime),
-approximately 40k polygons

For all the effects, I used the most efficient algorithms, optimizing the fragment shader as much as possible..


适用于Unity版本高于2017.1.0f
LWRP仅适用于高于2019.1.0f1的Unity版本
URP仅适用于高于2019.3.0f3的Unity版本
支持单通道和多通道VR
市场上最快的解决方案

注意!如果你使用的是2D lut,请确保将各向异性纹理选项设置为“每个纹理”或“禁用”。
*更新*增加了885个LUT地图

这个包包含用于在屏幕上应用2D LUT或3D LUT的着色器。这种解决方案是目前市场上最快的方法,主要面向移动设备。为了优化性能,我们在加载场景的低端移动设备上测试了着色器:
* 2DLUT -市场上最快的2DLUT。使用NVIDIA官方教程中的2.5D LUT技术,比简单的3DLUT运行更快,在大多数情况下保持相同的图像质量。在低端移动设备上以50-58 FPS运行(有适当的设置)。
* 3DLUT-资产商店中最快的3DLUT。完全优化的lut。在低端移动设备上以47-58 FPS运行(有适当的设置)。
在这种方法中,只有256x16的LUT映射被用于校正。请注意! !所有测试均在低端移动设备魅族M2 Note上进行,场景包含:
-65个不同的游戏对象,
-68种不同的材料,
-57种不同的纹理,
-1定向光(实时),
-大约40k个多边形

对于所有的效果,我使用了最有效的算法,尽可能地优化片段着色器。





回复

使用道具 举报

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

本版积分规则

快速回复 返回顶部 返回列表