summaryrefslogtreecommitdiff
path: root/js/api/gallery.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/api/gallery.js')
-rw-r--r--js/api/gallery.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/api/gallery.js b/js/api/gallery.js
index c83d5f6..0e6614b 100644
--- a/js/api/gallery.js
+++ b/js/api/gallery.js
@@ -39,14 +39,15 @@ shader_gallery.bind = function(){
})
}
-function new_shader(){
+function new_shader(opt){
+ opt = opt || {}
shader_id_root = null
run_shader({
id: "",
shader_id: "",
image_url: $("#url").val(),
- script: "",
- name: ""
+ script: opt.shader || "",
+ name: opt.name || ""
})
}
function run_shader(shader_object){