截图
介绍
> Digital compression errors woven into the world.
Datamosh is a post-processing shader that recreates the visual artifacts associated with corrupted MPEG-style video compression. Instead of traditional visual enhancement, the shader deliberately introduces macroblock displacement, color quantization, chroma reconstruction errors, and edge artifacts to emulate the appearance of damaged or mispredicted P-frames. The result is a constantly shifting image where sections of the scene appear to borrow data from the wrong locations, producing a convincing datamosh-inspired aesthetic during gameplay.



✨ Highlights
Macroblock Motion Corruption.
The image is divided into 8×8 pixel macroblocks. Each block periodically generates its own motion behavior and samples pixels from offset locations rather than its original position. Most blocks remain stable, while others drift or suddenly jump across the frame, reproducing the characteristic block displacement seen in damaged compressed video streams.
Asynchronous Block Updates.
Each macroblock updates on its own timing interval rather than following a uniform pattern. This prevents the effect from appearing synchronized and creates the impression of independent compression errors spreading through the image over time.
Datamosh-Style Frame Smearing.
When a block shifts, it continues to reconstruct its contents using pixel positions from the displaced source region. This preserves the structure of the macroblock while pulling visual information from elsewhere in the frame, creating the smeared and fragmented appearance associated with motion-vector corruption.
DCT Edge Ringing Simulation.
Additional brightness variation is applied near macroblock boundaries to mimic ringing artifacts commonly produced by discrete cosine transform compression. These subtle bright and dark fringes help reinforce the illusion of heavily compressed video.
Adaptive Color Quantization.
Color values are reduced to a limited number of levels on a per-block basis. Blocks experiencing stronger displacement receive heavier quantization, producing visible banding and compression breakup similar to low-bitrate MPEG footage.
Chroma Subsampling Artifacts.
Color information is reconstructed at a lower effective resolution by sampling chroma from neighboring pixels while preserving local luminance. This reproduces the color bleeding and misalignment often associated with 4:2:0 video compression.
Mosquito Noise Around Edges.
High-frequency noise is introduced around areas of contrast, imitating the shimmering edge artifacts that appear after aggressive video compression. The effect is strongest around detailed image features and moving regions.
⚙️ Compatibility
- Implemented as a composite post-processing pass.
- Uses GLSL 1.20 shaders.
- Operates entirely on the rendered image (
colortex0) rather than modifying lighting, materials, shadows, or world rendering. - No custom buffers, lighting systems, or advanced rendering pipelines are present in the project.
- Designed as a visual-effect shader focused on compression artifacts and datamosh simulation.
常见问题
Datamosh 支持哪些 Minecraft 版本?
Datamosh 支持 Minecraft Java 版 1.7.3–26.3,共 83 个版本,可用的加载器:Iris / OptiFine。下载时注意选择和你游戏版本一致的文件。
Datamosh 怎么安装?
光影需要先装 Iris / OptiFine。把下载的 .zip 文件(不用解压)放进游戏目录的 shaderpacks 文件夹,进游戏后在「选项 → 视频设置 → 光影包」里选中它。光影对显卡要求较高,卡顿可以调低光影设置或渲染距离。
xsoras 的其他作品
查看全部 →Vanilla Enhanced
一款轻量级光影,带来更真实的光照与更出色的视觉效果。
i hate shadows
Fullbright shader, banished every shadow.👋 You’re welcome.
Cartoony
A shader that makes 3D look like old-school cartoons on caffeine.
Blind
Simulates blindness with noise, pulse, and light distortion effects.

评论
登录后评论和评分