moved from a general heatmap to a more spatial hot cold point around nodes that the density and brightness are controlled by how far past the threshold the nodes temp is
This commit is contained in:
parent
6c87ed03ed
commit
6cc40e159a
9 changed files with 493 additions and 26 deletions
|
|
@ -14,6 +14,7 @@ export interface BaseMeshProps {
|
|||
materialProps?: Partial<MaterialParameters>;
|
||||
materialOverride?: React.ReactNode;
|
||||
side?: Side
|
||||
depthWrite?: boolean
|
||||
}
|
||||
|
||||
export default function BaseMesh(props: BaseMeshProps) {
|
||||
|
|
@ -30,7 +31,8 @@ export default function BaseMesh(props: BaseMeshProps) {
|
|||
materialType,
|
||||
materialProps,
|
||||
materialOverride,
|
||||
side
|
||||
side,
|
||||
depthWrite = true
|
||||
} = props;
|
||||
|
||||
const isTransparent = opacity < 1;
|
||||
|
|
@ -43,7 +45,7 @@ export default function BaseMesh(props: BaseMeshProps) {
|
|||
color={colour}
|
||||
transparent={isTransparent}
|
||||
opacity={opacity}
|
||||
depthWrite={!isTransparent}
|
||||
depthWrite={depthWrite}
|
||||
side={side}
|
||||
{...materialProps}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue