| | |
| | | const House = (props) => { |
| | | const { |
| | | wallThickness = 2, |
| | | wallOpacity = .9, |
| | | wallOpacity = .8, |
| | | roofOpacity = .1, |
| | | width = DEBUG ? 14000 : 1400, |
| | | length = DEBUG ? 12000 : 1200, |
| | | height = DEBUG ? 4000 : 400, |
| | |
| | | metalness={1.0} |
| | | roughness={0.8} |
| | | transparent={true} |
| | | opacity={wallOpacity} |
| | | opacity={roofOpacity} |
| | | ></meshPhysicalMaterial> |
| | | </mesh> |
| | | {/* 顶部第二层 */} |
| | |
| | | metalness={1.0} |
| | | roughness={0.8} |
| | | transparent={true} |
| | | opacity={wallOpacity} |
| | | opacity={roofOpacity} |
| | | ></meshPhysicalMaterial> |
| | | </mesh> |
| | | {/* 顶部第三层 */} |
| | |
| | | metalness={1.0} |
| | | roughness={0.8} |
| | | transparent={true} |
| | | opacity={wallOpacity} |
| | | opacity={roofOpacity} |
| | | ></meshPhysicalMaterial> |
| | | </mesh> |
| | | </group> |