Returns the current alpha testing reference value.


GML Code Example


Returns: Real


You can use this function to find the current value for the alpha test reference (default is 0, but you can use draw_set_alpha_test_ref_value to set this value to something other than this).


GML Code Example

if draw_get_alpha_test()
    if draw_get_alpha_test_ref_value() < 254

The above code checks to see if alpha testing is enabled, and if it is, it then checks the current alpha test reference value and sets it if it is less than 254.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here