1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00
This commit is contained in:
Kevin Levron 2021-05-04 23:37:37 +02:00
parent 1735a2150c
commit 850ee43e55

View File

@ -31,25 +31,3 @@ export default materialComponent(
return material
}
)
// export default defineComponent({
// extends: Material,
// props: {
// uniforms: { type: Object, default: () => ({}) },
// vertexShader: { type: String, default: defaultVertexShader },
// fragmentShader: { type: String, default: defaultFragmentShader },
// },
// methods: {
// createMaterial() {
// const material = new ShaderMaterial(propsValues(this.$props, ['color']));
// ['vertexShader', 'fragmentShader'].forEach(p => {
// // @ts-ignore
// watch(() => this[p], (value) => { material[p] = value; material.needsUpdate = true })
// })
// return material
// },
// },
// __hmrId: 'ShaderMaterial',
// })