Skip to content

Conversation

@donmccurdy
Copy link
Collaborator

@donmccurdy donmccurdy commented Apr 2, 2023

Related:

Moves sRGB decode of video textures from the shader to hardware. Unlike with image textures, if the device supports neither WebGL 2 nor EXT_sRGB, we do not have a CPU decode fallback.

In addition to simplifying the renderer and a (probably modest) performance benefit, this makes life easier and more consistent for users handling video textures in custom shaders. See thread in the forums, R3F / Drei -> Image component with videoTexture. How do I fix brightness/tone mapping issue?, for context.

@github-actions
Copy link

github-actions bot commented Apr 2, 2023

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize Gzipped Diff from dev
626.5 kB 155.7 kB -787 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize Gzipped Diff from dev
418.1 kB 101.8 kB -789 B

@Mugen87 Mugen87 added this to the r152 milestone Apr 2, 2023
@mrdoob
Copy link
Owner

mrdoob commented Apr 3, 2023

Nice! I didn't realize https://crbug.com/1256340 got fixed! 🎉

@mrdoob mrdoob merged commit 6234608 into mrdoob:dev Apr 3, 2023
@donmccurdy donmccurdy deleted the feat/video-texStorage2D branch April 3, 2023 02:06
@Methuselah96 Methuselah96 mentioned this pull request Apr 28, 2023
38 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants