本帖最后由 微笑的猫 于 2024-3-12 11:25 编辑
UPixelator - Pixelize 3d Scenes 2.2.0版下载链接
UPixelator asset provides the basis for creating pixel art style games with 3d models.
It is a shaderless solution for pixelating 3d scenes with pixel creep reduction for orthographic camera.
Render pipelines
- Built-in ✓
- URP ✓
Tested builds
Unity 2021.3 (Builtin, URP 12): Windows, WebGL
Unity 2022.3 (Builtin, URP 14): Windows, WebGL
Available modules
- Pixel Art Edge Highlights
Shaderless
Requires no special shaders so you can keep your existing materials.
Pixelation
Achieved by rendering to a lower resolution render texture and upscaling to fit the screen.
Pixel Creep reduction
Camera and tagged objects are snapped to a grid of world space pixel size resulting in the same pixel colors being rendered while moving.
Subpixel stabilization
Snapping to pixel size grid makes the camera shake so subpixel offset is applied in the game resolution based on the snap position difference.
Camera projections
This asset is intended to be used with orthographic camera, even though it will pixelize a perspective camera.
Please note that only the orthographic camera has the benefit of pixel creep reduction.
Please note
- Rotation will always have some pixel creep but it's less noticeable with higher rotation speed
- Zig-zag will occur for all snapped moving objects, but is less noticeable with higher movement speed
- Large screen space effects are not supported but repeating patterns like 2,4,8,16 pixels wide are
- Resolution must be set and be divisible with pixelMultiplier (work in progress on this)
UPixelator asset 为使用 3d 模型创建像素艺术风格的游戏提供了基础。
它是一种无着色器解决方案,用于对 3d 场景进行像素化处理,并减少正交摄影机的像素蠕变。
渲染管道
- 内置 ✓
- URP ✓
已测试版本
Unity 2021.3(内置,URP 12): Windows、WebGL
Unity 2022.3(内置,URP 14): Windows、WebGL
可用模块
- 像素艺术边缘亮点
无着色器
不需要特殊着色器,因此您可以保留现有材质。
像素化
通过渲染到较低分辨率的渲染纹理并上调以适应屏幕来实现。
减少像素蠕变
摄像机和标记的物体会被捕捉到世界空间像素大小的网格中,从而在移动时渲染出相同的像素颜色。
子像素稳定
按照像素大小的网格进行抓取会导致摄像机晃动,因此会根据抓取位置的差异在游戏分辨率中应用子像素偏移。
摄像机投影
该资产旨在与正交摄影机一起使用,尽管它会使透视摄影机像素化。
请注意,只有正交摄影机才具有减少像素蠕变的优点。
请注意
- 旋转时总会出现一些像素蠕变,但旋转速度越快,蠕变越不明显
- 所有折叠移动的物体都会出现 "之 "字形效果,但移动速度越快,效果越不明显
- 不支持大屏幕空间效果,但支持 2、4、8、16 像素宽的重复图案
- 必须设置分辨率,并可使用像素倍增器进行分割(相关工作正在进行中)
|