/
fadaliastro
/
MGFI
Обзор
Документация
Войти
/
fadaliastro
/
MGFI
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
node_modules/three/src/nodes/core/NodeCode.js
46 строк
925 B
Fa-Dali
Initial commit
28 янв 2026, 00:16
28 янв 2026, 00:16
d5a5086
Код
Авторство
О чём код?
/** * {@link NodeBuilder} is going to create instances of this class during the build process * of nodes. They represent user-defined, native shader code portions that are going to be * injected by the builder. A dictionary of node codes is maintained in {@link NodeBuilder#codes} * for this purpose. */ class NodeCode { /** * Constructs a new code node. * * @param {string} name - The name of the code. * @param {string} type - The node type. * @param {string} [code=''] - The native shader code. */ constructor( name, type, code = '' ) { /** * The name of the code. * * @type {string} */ this.name = name; /** * The node type. * * @type {string} */ this.type = type; /** * The native shader code. * * @type {string} * @default '' */ this.code = code; Object.defineProperty( this, 'isNodeCode', { value: true } ); } } export default NodeCode;