gpu_set_colorwriteenable() - Locking Color Channels in GameMaker (audio screwy)

preview_player
Показать описание
Sometimes it can be useful to be able to control whether or not color channels get written to the render target when you draw something. GameMaker gives us a handy little function to do just that!

The frequently-mentioned surface alpha video:

Shader playlist:
GameMaker 3D playlist:
GameMaker Studio 2 playlist:

0:00 Introduction
0:10 gpu_set_colorwriteenable
1:01 What it does
1:53 What it *doesn't* do
2:57 Working through an example by hand
4:04 Passing an array as an argument
6:26 The end

#GameMaker
#GameMakerColors
#GameMakerAdvancedDrawing
- - - - -
I've now made that Patreon:
That promised social media link spam.
Transition / idle music is by my old friend Kamex:

Rate, comment, subscribe, watch more, enjoy!
Комментарии
Автор

So if I'm understanding this properly, this essentially let's you stop a byte of color data from being written to the screen for a given channel, which would mean if you created a green wall in 3D, and hid something behind it, then disabled green drawing, then the result would be that you simply see the green channel of everything behind the wall? But if you made it a yellow wall and disabled red/green drawing, then it would let you see any portion of the object behind the wall except the blue channel, which would be set to 0?

GameJam