Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Can you manipulate the image produced/rendered by a craft camera directly?

edited January 18 in Questions Posts: 51

I’d like to apply some color grading, and a makeshift vignette effect to this scene I have. Do I do that directly in the draw function? This is how I typically draw UI, however, I’ve been unable to draw and set a background color with transparency that way. I presumed I’d be able to use background() with a color that has a low alpha, and still see the things I have rendered in the scene. I’d love to be able to use setcontext directly on the camera’s render texture, but I’m sure that’s not allowed :P

Tagged:

Comments

  • Posts: 418

    @arismoko background() clears the backbuffer entirely which is why it’s not working for you. In your case I’d suggest rendering a fullscreen rectangle with the correct colour instead as that won’t erase any work done already.

    As for vignette, the best way would probably be using a shader.

  • Posts: 51

    Thank you! I’ll try that out (:

  • Posts: 51

    This works perfectly! I was trying to make my 3d snake game look like it was made on a gameboy, and using a rectangle at 0,0 with the dimensions of the screen and a green color does the trick! @Steppers

  • Posts: 418
    @arismoko Fantastic :smile:
Sign In or Register to comment.