File tree Expand file tree Collapse file tree 5 files changed +2
-17
lines changed Expand file tree Collapse file tree 5 files changed +2
-17
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 @@ -72,21 +72,18 @@ export default function Starter() {
72
72
src = "https://uploads.codesandbox.io/uploads/user/b3e56831-8b98-4fee-b941-0e27f39883ab/I9vI-RoNmD7W.png"
73
73
position = { [ - 11 , 2 , 6.4 ] }
74
74
rotation = { [ 0 , Math . PI , 0 ] }
75
- transparent
76
75
/>
77
76
< Image
78
77
src = "https://uploads.codesandbox.io/uploads/user/b3e56831-8b98-4fee-b941-0e27f39883ab/I9vI-RoNmD7W.png"
79
78
position = { [ - 12.5 , 2 , 6.4 ] }
80
79
rotation = { [ 0 , Math . PI , 0 ] }
81
80
framed
82
- transparent
83
81
/>
84
82
< Image
85
83
src = "https://uploads.codesandbox.io/uploads/user/b3e56831-8b98-4fee-b941-0e27f39883ab/I9vI-RoNmD7W.png"
86
84
position = { [ - 14 , 2 , 6.4 ] }
87
85
rotation = { [ 0 , Math . PI , 0 ] }
88
86
framed
89
- transparent
90
87
/>
91
88
< Interactable
92
89
onHover = { ( ) => setHovering ( true ) }
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