Use 2 cameras to make a watermark

Source: Internet
Author: User

In unity projects, we often encounter the ability to share pictures after a screenshot, in order to prevent the infringement of content and enhance the ability to spread, we need watermark function. In unity, this implementation:

1, need to have two orthogonal cameras

2, two cameras with different depth

3, depth smaller because the rendering time than large, so as the main map rendering

4, depth large rendering time in the above camera, it is responsible for the watermark (or word) rendering to the above camera output

5. Create a new rendertarget in unity and then drag the rendertarget into the target texture section of the two camera

So the figure rendered in the RenderTarget is the watermark we need.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.