remove verbose render info
This commit is contained in:
parent
10678e8bcc
commit
43da35daad
|
@ -115,7 +115,6 @@ render.make_shader = function(shader)
|
||||||
{
|
{
|
||||||
var file = shader;
|
var file = shader;
|
||||||
shader = io.slurp(shader);
|
shader = io.slurp(shader);
|
||||||
console.info(shader);
|
|
||||||
if (!shader) {
|
if (!shader) {
|
||||||
console.info(`not found! slurping shaders/${file}`);
|
console.info(`not found! slurping shaders/${file}`);
|
||||||
shader = io.slurp(`shaders/${file}`);
|
shader = io.slurp(`shaders/${file}`);
|
||||||
|
@ -183,20 +182,18 @@ render.make_shader = function(shader)
|
||||||
|
|
||||||
/* Take YAML and create the shader object */
|
/* Take YAML and create the shader object */
|
||||||
var yamlfile = `${out}_reflection.yaml`;
|
var yamlfile = `${out}_reflection.yaml`;
|
||||||
console.info(`slurping ${yamlfile}`);
|
|
||||||
var jjson = yaml.tojson(io.slurp(yamlfile));
|
var jjson = yaml.tojson(io.slurp(yamlfile));
|
||||||
var obj = json.decode(jjson);
|
var obj = json.decode(jjson);
|
||||||
io.rm(yamlfile);
|
io.rm(yamlfile);
|
||||||
|
|
||||||
obj = obj.shaders[0].programs[0];
|
obj = obj.shaders[0].programs[0];
|
||||||
function add_code(stage) {
|
function add_code(stage) {
|
||||||
console.info(json.encode(stage));
|
|
||||||
stage.code = io.slurp(stage.path);
|
stage.code = io.slurp(stage.path);
|
||||||
|
|
||||||
io.rm(stage.path);
|
io.rm(stage.path);
|
||||||
delete stage.path;
|
delete stage.path;
|
||||||
}
|
}
|
||||||
console.info(json.encode(obj));
|
|
||||||
add_code(obj.vs);
|
add_code(obj.vs);
|
||||||
if (!obj.fs)
|
if (!obj.fs)
|
||||||
if (obj.vs.fs) {
|
if (obj.vs.fs) {
|
||||||
|
@ -249,7 +246,6 @@ render.make_shader = function(shader)
|
||||||
io.slurpwrite(writejson, json.encode(compiled));
|
io.slurpwrite(writejson, json.encode(compiled));
|
||||||
profile.report(st, `make shader from ${file}`);
|
profile.report(st, `make shader from ${file}`);
|
||||||
|
|
||||||
console.info(`pipeline for ${file}`);
|
|
||||||
var obj = compiled[os.sys()];
|
var obj = compiled[os.sys()];
|
||||||
obj.pipe = render.pipeline(obj);
|
obj.pipe = render.pipeline(obj);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue