mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
da885ac40a
* effect (de)serialization * more GL params to configure in effect * uniform tags * material (de)serialization * switch to json solution * effect: pass default value to editor too * minor fix * use default (de)serialization procedure * async builtin init only
19 lines
585 B
JavaScript
19 lines
585 B
JavaScript
'use strict';
|
|
|
|
const path_ = require('path');
|
|
const shdcLib = require('../cocos/renderer/bin/shdc-lib');
|
|
|
|
// ====================
|
|
// build
|
|
// ====================
|
|
let chunksCache = {};
|
|
let chunkPath = './cocos/renderer/shaders/chunks';
|
|
let chunksFile = path_.join(chunkPath, 'index.json');
|
|
console.log(`generate ${chunksFile}`);
|
|
shdcLib.buildChunks(chunksFile, chunkPath, chunksCache);
|
|
|
|
let tmplPath = './cocos/renderer/shaders/templates';
|
|
let tmplFile = path_.join(tmplPath, 'index.json');
|
|
console.log(`generate ${tmplFile}`);
|
|
shdcLib.buildTemplates(tmplFile, tmplPath, chunksCache);
|