File tree Expand file tree Collapse file tree 4 files changed +2
-14
lines changed Expand file tree Collapse file tree 4 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -366,7 +366,6 @@ Quickly add an image to your scene
366
366
src = " https://link-to-your-image.png"
367
367
size = { 1 } // size, default normalized to longest side = 1
368
368
framed // adds a frame
369
- transparent // enables transparency on the image
370
369
/>
371
370
```
372
371
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export function ImageTexture(props: ImageProps) {
12
12
frameMaterial,
13
13
frameWidth = 1 ,
14
14
innerFrameMaterial,
15
- transparent,
16
15
} = props ;
17
16
18
17
const texture = useTexture ( src ) ;
@@ -28,11 +27,7 @@ export function ImageTexture(props: ImageProps) {
28
27
< group name = "spacesvr-texture" { ...props } >
29
28
< mesh >
30
29
< planeBufferGeometry args = { [ WIDTH , HEIGHT ] } />
31
- < meshBasicMaterial
32
- map = { texture }
33
- side = { DoubleSide }
34
- transparent = { transparent }
35
- />
30
+ < meshBasicMaterial map = { texture } side = { DoubleSide } transparent />
36
31
</ mesh >
37
32
{ framed && (
38
33
< Frame
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ export function KTX2Texture(props: ImageProps) {
12
12
frameMaterial,
13
13
frameWidth = 1 ,
14
14
innerFrameMaterial,
15
- transparent,
16
15
} = props ;
17
16
18
17
const texture = useKTX2 ( src ) ;
@@ -28,11 +27,7 @@ export function KTX2Texture(props: ImageProps) {
28
27
< group name = "spacesvr-ktx2" { ...props } >
29
28
< mesh rotation = { [ 0 , Math . PI , Math . PI ] } >
30
29
< planeBufferGeometry args = { [ WIDTH , HEIGHT ] } />
31
- < meshBasicMaterial
32
- map = { texture }
33
- side = { DoubleSide }
34
- transparent = { transparent }
35
- />
30
+ < meshBasicMaterial map = { texture } side = { DoubleSide } transparent />
36
31
</ mesh >
37
32
{ framed && (
38
33
< Frame
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ export type ImageProps = {
11
11
frameMaterial ?: Material ;
12
12
frameWidth ?: number ;
13
13
innerFrameMaterial ?: Material ;
14
- transparent ?: boolean ;
15
14
} & GroupProps ;
16
15
17
16
export function Image ( props : ImageProps ) {
You can’t perform that action at this time.
0 commit comments