summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2015-07-22 14:11:33 -0700
committerNanley Chery <nanley.g.chery@intel.com>2015-07-22 14:13:57 -0700
commitda0bc6bcb2746951a14cc357b682897b32920fdc (patch)
tree00ef80869080904bc10f0d04601bebbd2ae4cc8c
parent1da4f0143537a64f2c544f1ef650bee4d17a8f22 (diff)
get rid of uneeded convert and encoder options
-rwxr-xr-xmake_ktxes.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/make_ktxes.sh b/make_ktxes.sh
index 8a16dbd..14f8940 100755
--- a/make_ktxes.sh
+++ b/make_ktxes.sh
@@ -166,8 +166,6 @@ function create_ktx_for_fmt {
if [ "$i" = "ldrs" ]; then
switch="s"
astc_fmt_array_offset=14
- #encopts+=" -srgb"
- #decopts+=" -srgb"
elif [ "$i" = "ldrl" ]; then
switch="l"
else
@@ -250,7 +248,7 @@ for lod in $(seq 0 $MAX_LEVEL); do
# Change the hue of each miplevel
lod_out=${inFileHead}-${lod}$inFileExt
percent=$( echo "scale = 4; a = $lod*200/$MAX_LEVEL + 100; if (a < 200) a else a - 200" | bc )
- convert -define png:preserve-colormap=true -alpha set -modulate 100,100,$percent ${inFileHead}$inFileExt"[${img_w}x${img_h}!]" $lod_out
+ convert -modulate 100,100,$percent ${inFileHead}$inFileExt"[${img_w}x${img_h}!]" $lod_out
echo "LOD-$lod dimensions are: ${img_w}x${img_h}"
# Generate next LOD dimensions.