Skip to content
プロジェクト

keijiro/unity-dither4444

GitHubで見る

概要

Unityで高品質な16ビットカラーのテクスチャを作成するAssetPostProcessor。

その他のプロジェクト

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

unity-dither4444

This example shows how to make a high-quality 16-bit color texture in Unity.

Abstract

Unity supports 16-bit color as a texture color format, however it introduces significant color banding.

Image A (original)Image A (default)

Image B (original)Image B (default)

(Left: original image, Right: 16-bit converted image)

It’s mainly because of lack of dither -- Unity simply quantizes the image to 16-bit without any fancy algorithms. It can be improved by dithering the image before quantization. This example does it in the AssetPostProcessor script.

Image A (original)Image A (dithered)

Image B (original)Image B (dithered)

(Left: original image, Right: 16-bit image with dithering)

Usage

Add “Dither” to the end of the filename, or import an image with the “Dither” suffix. The AssetPostProcessor script automatically detects and convert it. You can change the behavior by modifying the script. See the script for further details.

License

The script files in this repository are in the public domain. You can copy and paste it without permission or attribution.

関連プロジェクトを探す

読み込み中…