lib/jax/shader.rb in jax-1.0.1 vs lib/jax/shader.rb in jax-1.1.0.rc1

- old
+ new

@@ -1,14 +1,29 @@ class Jax::Shader - attr_reader :common, :fragment, :vertex + # attr_reader :common, :fragment, :vertex attr_accessor :name, :path, :exports, :manifest def initialize(path, name = File.basename(path)) @exports = {} @name = name @path = path detect_sources + end + + def common + detect_sources # force reloads the latest sources + @common + end + + def fragment + detect_sources # force reloads the latest sources + @fragment + end + + def vertex + detect_sources # force reloads the latest sources + @vertex end def description manifest && manifest['description'] end \ No newline at end of file