diff options
author | Nanley Chery <nanley.g.chery@intel.com> | 2015-07-06 11:43:44 -0700 |
---|---|---|
committer | Nanley Chery <nanley.g.chery@intel.com> | 2015-07-06 14:45:43 -0700 |
commit | 95d2883508b648001f1dd6d957886e8c65cc8c00 (patch) | |
tree | c1e4d91b1dbdad65533bd8b1a9b81088c91715f2 | |
parent | cd45f52d50409830e695b75f4f89738403897bf5 (diff) |
Change the hue of each miplevel
This was a suggestion to detect if hardware masked a rendering issue.
I'm not currently sure what may cause this however.
-rwxr-xr-x | make_ktxes.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/make_ktxes.sh b/make_ktxes.sh index 4f1692f..bc79d96 100755 --- a/make_ktxes.sh +++ b/make_ktxes.sh @@ -261,6 +261,13 @@ for lod in $(seq 0 $MAX_LEVEL); do img_h=$(minify $img_h) done +# Change the hue of each miplevel +for lod in $(seq 0 $MAX_LEVEL); do + lod_out=${inFileHead}-${lod}$inFileExt + percent=$( echo "scale = 4; a = $lod*200/$MAX_LEVEL + 100; if (a < 200) a else a - 200" | bc ) + convert -modulate 100,100,$percent $lod_out $lod_out +done + # Generate a specific format or all formats |