Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render Texture doesnt have any transparency #26

Closed
PressFToPayRespekk opened this issue Mar 8, 2022 · 2 comments
Closed

Render Texture doesnt have any transparency #26

PressFToPayRespekk opened this issue Mar 8, 2022 · 2 comments

Comments

@PressFToPayRespekk
Copy link

I tried to give my fps weapon its own camera and use a render texture to display the weapon on top of everything but I've realized that the render textures doesn't currently have working transparency (compared to the built-in pipeline), to reproduce this effect just create 2 cameras, 1 normal one and 1 for the render texture. Then make a raw image and put the render texture to the texture field. Make sure the camera with the render texture has "Clear Flags" set to Depth only and for the culling mask make it only render one layer.

@PressFToPayRespekk PressFToPayRespekk changed the title Render Texture doesnt have any transparency Render Texture doesnt have any transparency Mar 8, 2022
@PressFToPayRespekk
Copy link
Author

Unity version: 2020.3.30f1

@pastasfuture
Copy link
Owner

In order for your render texture to have transparency, you need to set your Sky Volume mode to Background Color. Then on your camera, set it's Background Color variable to fully transparent (alpha 0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants