+1 vote

I'd like to be able to set a mask before drawing a a texture. This mask would be like the OpenGL stencil buffer and would be in addition to whatever alpha channel is present in the image I'm drawing. I'd also like to be able to draw several images with masks onto the same accumulation texture so that I can build up my image in layers. I know how I could go about this if I were writing in C++ with OpenGL, but am not sure how to do this in Godot. Is it possible with the Godot API? If not, can I use OpenGL commands directly?

in Engine by (154 points)

If not, can I use OpenGL commands directly?

Godot isn't designed for that. It's specifically designed to provide an abstraction over it, so that wouldn't work.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.