Тёмный
No video :(

OpenGL - transparency (alpha blending) 

Brian Will
Подписаться 96 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

4 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@cmdlp4178
@cmdlp4178 5 лет назад
Premultiplied alpha has some further advantages: 1. Bilinear filtering is always rendered correctly. Without premultiplied values, there are some strange cases: When a fully transparent pixel has a black rgb-color, the gradient to a visible pixel gets darker in the middle, in a similar way the gradient gets lighter when the rgb-color is white. You have to carefully craft the texture, when not premultiplying the texture. 2. You get the ability to blend textures additively in the same rendering pass. Flares, fire and holograms need to be rendered with an additive blend mode. With premultiplied alpha, you can simulate/enable additive blend mode when using low alpha values and higher color values. Low alpha values let almost all light pass through the texture. The color values do not get multiplied again, and so are just added on to the background. For this you might only ignore/discard fully transparent pixels (alpha==0). The alpha value of the pixels is 1, on the 0..255 scale. When the resulting color exceeds 100% it is clamped to 100%.
@insertoyouroemail
@insertoyouroemail 5 лет назад
Nice!
@amosesmolina
@amosesmolina 4 года назад
Learning opengl right now and this video came in handy. Also, near the beginning you say that 75% of 40 is 10% but I think you meant 75% of 40 is 30 and we are left with 10% of light passing through.
@juanrey7318
@juanrey7318 3 года назад
Thank you very much for the video, was getting crazy with some volumetrics
@insertoyouroemail
@insertoyouroemail 5 лет назад
I find transparency to be very valuable to understand for particle effects.
@sumitmakkar15
@sumitmakkar15 Год назад
For glBlendFuncSeparate, shouldn't value for Cb = Cs*As + Cd*Ad*(1-As) and same for Ab= As*1 + Cd*Ad*(1-As). Please check this at time 10:38
@markcuello5
@markcuello5 Год назад
HELP
Далее
OpenGL - normal maps
13:23
Просмотров 11 тыс.
OpenGL - 3D rendering overview
15:31
Просмотров 24 тыс.
🫢 #tiktok #elsarca
00:11
Просмотров 3,7 млн
OpenGL - instancing
8:07
Просмотров 12 тыс.
Blending in OpenGL
12:37
Просмотров 68 тыс.
When RESTful architecture isn't enough...
21:02
Просмотров 274 тыс.
How to win a argument
9:28
Просмотров 504 тыс.
OpenGL - specular IBL (image based lighting)
12:43
Просмотров 8 тыс.
OpenGL - Framebuffer Objects
14:37
Просмотров 20 тыс.
Why you should never use deferred shading
30:14
Просмотров 13 тыс.
CD / The Horrors of the Alpha Channel
6:58
Просмотров 1,8 млн
OpenGL - depth and stencil buffers
10:01
Просмотров 18 тыс.