pastasfuture / com.hauntedpsx.render-pipelines.psx

A scriptable render pipeline for emulating Playstation-1-style graphics on contemporary hardware.
https://twitter.com/HauntedPs1/
MIT License
383 stars 26 forks source link

Render Texture doesnt have any transparency #26

Closed PressFToPayRespekk closed 11 months ago

PressFToPayRespekk commented 2 years ago

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 commented 2 years ago

Unity version: 2020.3.30f1

pastasfuture commented 11 months ago

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).