Class: NormalMap::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/normal_map/cli.rb

Instance Method Summary collapse

Instance Method Details

#generate(colors_fn, normals_fn) ⇒ Object



11
12
13
14
15
# File 'lib/normal_map/cli.rb', line 11

def generate colors_fn, normals_fn
  create_file normals_fn do
    NormalMap.new(colors_fn, options).to_blob { |f| f.format = "PNG" }
  end
end