Skip to content

Commit 966bdc7

Browse files
committed
chore(soba): remove comments in Shadow
1 parent d7426b7 commit 966bdc7

File tree

1 file changed

+0
-45
lines changed

1 file changed

+0
-45
lines changed

libs/soba/misc/src/shadow/shadow.ts

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -105,48 +105,3 @@ export class NgtsShadow {
105105
return canvas;
106106
});
107107
}
108-
109-
//
110-
//
111-
// type Props = JSX.IntrinsicElements['mesh'] & {
112-
// colorStop?: number
113-
// fog?: boolean
114-
// color?: Color | number | string
115-
// opacity?: number
116-
// depthWrite?: boolean
117-
// }
118-
//
119-
// export const Shadow = React.forwardRef(
120-
// (
121-
// { fog = false, renderOrder, depthWrite = false, colorStop = 0.0, color = 'black', opacity = 0.5, ...props }: Props,
122-
// ref
123-
// ) => {
124-
// const canvas = React.useMemo(() => {
125-
// const canvas = document.createElement('canvas')
126-
// canvas.width = 128
127-
// canvas.height = 128
128-
// const context = canvas.getContext('2d') as CanvasRenderingContext2D
129-
// const gradient = context.createRadialGradient(
130-
// canvas.width / 2,
131-
// canvas.height / 2,
132-
// 0,
133-
// canvas.width / 2,
134-
// canvas.height / 2,
135-
// canvas.width / 2
136-
// )
137-
// gradient.addColorStop(colorStop, new Color(color).getStyle())
138-
// gradient.addColorStop(1, 'rgba(0,0,0,0)')
139-
// context.fillStyle = gradient
140-
// context.fillRect(0, 0, canvas.width, canvas.height)
141-
// return canvas
142-
// }, [color, colorStop])
143-
// return (
144-
// <mesh renderOrder={renderOrder} ref={ref as React.MutableRefObject<Mesh>} rotation-x={-Math.PI / 2} {...props}>
145-
// <planeGeometry />
146-
// <meshBasicMaterial transparent opacity={opacity} fog={fog} depthWrite={depthWrite} side={DoubleSide}>
147-
// <canvasTexture attach="map" args={[canvas]} />
148-
// </meshBasicMaterial>
149-
// </mesh>
150-
// )
151-
// }
152-
// )

0 commit comments

Comments
 (0)