mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
8dda58f16b
* restore effect * minor fix * fix shader & effect build
19 lines
581 B
JavaScript
19 lines
581 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.js');
|
|
console.log(`generate ${chunksFile}`);
|
|
shdcLib.buildChunks(chunksFile, chunkPath, chunksCache);
|
|
|
|
let tmplPath = './cocos/renderer/shaders/templates';
|
|
let tmplFile = path_.join(tmplPath, 'index.js');
|
|
console.log(`generate ${tmplFile}`);
|
|
shdcLib.buildTemplates(tmplFile, tmplPath, chunksCache);
|