This commit is contained in:
@@ -314,6 +314,7 @@ export const extractTextureUrl = (texture: any) => {
|
|||||||
|
|
||||||
|
|
||||||
export const extractMaterialProps = (material: any): Partial<MaterialProps> => {
|
export const extractMaterialProps = (material: any): Partial<MaterialProps> => {
|
||||||
|
console.log('[DEBUG] extractMaterialProps called with material:', material);
|
||||||
if (!material) return {};
|
if (!material) return {};
|
||||||
const mProps: Partial<MaterialProps> = {};
|
const mProps: Partial<MaterialProps> = {};
|
||||||
|
|
||||||
@@ -324,6 +325,8 @@ export const extractMaterialProps = (material: any): Partial<MaterialProps> => {
|
|||||||
|
|
||||||
// Standard material props
|
// Standard material props
|
||||||
const m = material as any;
|
const m = material as any;
|
||||||
|
console.log('[DEBUG] Material properties present on m:', { map: !!m.map, normalMap: !!m.normalMap, emissiveMap: !!m.emissiveMap });
|
||||||
|
|
||||||
if (m.transmission !== undefined) mProps.transmission = m.transmission;
|
if (m.transmission !== undefined) mProps.transmission = m.transmission;
|
||||||
if (m.ior !== undefined) mProps.ior = m.ior;
|
if (m.ior !== undefined) mProps.ior = m.ior;
|
||||||
if (m.thickness !== undefined) mProps.thickness = m.thickness;
|
if (m.thickness !== undefined) mProps.thickness = m.thickness;
|
||||||
|
|||||||
Reference in New Issue
Block a user