milifire / sandi-ui Goto Github PK
View Code? Open in Web Editor NEWBased on three vue3 component library with event system, build your interactive 3D world with components
Based on three vue3 component library with event system, build your interactive 3D world with components
大神你好,首先感谢开源这个UI库。我最近在学习相关知识,有一点点小需求就是要实现一个六面体每个面不同的材质。
网上 threejs 的例子
let cubeMaterial = [
new THREE.MeshBasicMaterial({ color: 'blue' }), // right
new THREE.MeshBasicMaterial({ color: 'yellow' }), // left
new THREE.MeshBasicMaterial({ map: new THREE.CanvasTexture(getTextCanvas('Leo Test Label')) }), // top
new THREE.MeshBasicMaterial({ color: 'black' }), // bottom
new THREE.MeshBasicMaterial({ color: 'green' }), // back
new THREE.MeshBasicMaterial({ color: 'red' }) // front
];
放在sandi-ui里面渲染没问题,但是关闭画面的时候,会报错,说这个 material.dispose() 不是个方法。
threejs 对 材质的支持是可以传array 的
请作者看看,这个自定义材质是否可以支持数组形式的传递。
或者有其他方案实现,我这个小需求,不胜感激。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.