Method: Jax::Generators::MaterialGenerator#append_shaders

Defined in:
lib/generators/jax/material/material_generator.rb

#append_shadersObject



57
58
59
60
61
# File 'lib/generators/jax/material/material_generator.rb', line 57

def append_shaders
  # first line of array is just array header stuff, we can do without it
  options = shader_options.to_yaml.lines.to_a[1..-1].collect { |line| "  "+line }.join
  append_file relative_path, options
end