Game Engine Programming 063.2 - Selecting RGBA channels using a WPF shader effect

Опубликовано: 29 Сентябрь 2024
на канале: Game Engine Series
1,359
36

✅ Support Game Engine Series   / gameengineseries  
In the last video, we worked on improving the texture editor and we added buttons for channel selection. This can be used to view only 1 channel or a combination of channels from the texture. Although the buttons are working, we still need to generate a new image from the selected channels. In this video, we're going to write a pixel shader and use it in a shader effect for WPF. This shader effect will render the image using only the selected channels.
🟩(Green Episode)

✅ Donations:
https://www.paypal.com/paypalme/arash...

✅ Discord
  / discord  

✅ Twitter
  / primalnippleman  

🐱 Mr. Frummel & Louis' unreal adventures
  / mr.frummel  

💜 Big thanks to Tribal Elders:
Von Bismarck, Falcon1911, Lester Lin, Ashwin Mods, Zachary Shrout, Alexandru Iancu

💚 Big thanks to Chief patrons:
Simon, Eero Laine

🧡 Big thanks to Shaman patrons:
mg, Shaun Mitchell, Aiguo Wang, deathcat00, Talis Lincoln, Waterglass, Miime, Timmy Jenkins

00:00 - intro
00:58 - the shader effect and the channel selection pixel shader
11:28 - add channel and stride properties
12:50 - notify properties changed
14:15 - test and fix bugs

RGBA test image:   / rgba-test-image-94705513  
Shader Effect class: https://learn.microsoft.com/en-us/dot...

by Arash Khatami
-------------------------------------------------------------
#PrimalEngine #GameEngineSeries #GameEngineProgramming #TheGameEngineProgrammingSeries