Skip to content

Commit d68d6bf

Browse files
authored
use basic material (#240)
1 parent 16a965d commit d68d6bf

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

video-streaming/src/index.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ export function main() {
2424
const videoTexture = Material.Texture.Video({ videoPlayerEntity: screen })
2525

2626
// apply same video to second screen
27-
Material.setPbrMaterial(screen2, {
28-
texture: videoTexture,
29-
emissiveTexture: videoTexture,
30-
emissiveIntensity: 1,
31-
roughness: 0,
32-
metallic: 0
27+
Material.setBasicMaterial(screen2, {
28+
texture: videoTexture
3329
})
3430

3531
pointerEventsSystem.onPointerDown(

0 commit comments

Comments
 (0)