From 73425177e598105a808bacb2b82e7c068815e0bc Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Thu, 29 Apr 2021 18:23:43 +0200 Subject: [PATCH] improve material --- src/materials/Material.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/materials/Material.ts b/src/materials/Material.ts index f1d9b4a..a7de924 100644 --- a/src/materials/Material.ts +++ b/src/materials/Material.ts @@ -1,5 +1,5 @@ -import { defineComponent, InjectionKey, watch } from 'vue' -import { FrontSide, Material, Texture } from 'three' +import { defineComponent, InjectionKey, PropType, watch } from 'vue' +import { FrontSide, Material, NormalBlending, Texture } from 'three' import { MeshInjectionKey, MeshInterface } from '../meshes/Mesh' export interface MaterialSetupInterface { @@ -21,7 +21,8 @@ export default defineComponent({ mesh: MeshInjectionKey as symbol, }, props: { - color: { type: [String, Number], default: '#ffffff' }, + color: { type: [String, Number] as PropType, default: '#ffffff' }, + blending: { type: Number, default: NormalBlending }, alphaTest: { type: Number, default: 0 }, depthTest: { type: Boolean, default: true }, depthWrite: { type: Boolean, default: true },