alelievr / HDRP-UI-Camera-Stacking

Optimized implementation of camera stacking for UI only in HDRP.
MIT License
173 stars 22 forks source link

Feature request - Render To Texture #5

Closed joshkbaker closed 2 years ago

joshkbaker commented 2 years ago

Hi, I've been using a separate camera to render my minimap. It's basically a camera above the player that renders icons on each object with a minimap script on them.

Normal camera works fine using this technique (render to texture) but I imagine I'm using more power than I should for this basic effect.

When I use this camera to do the same effect, it doesn't seem to render to texture and puts right across the screen. With the other camera technique, it renders fine in the bottom left of the screen.

Thanks

image

alelievr commented 2 years ago

Hello, which version are you using? The one on open UPM or master on github? The OpenUPM one doesn't support yet rendering to a texture

joshkbaker commented 2 years ago

I thought I was using the Master on github, does the master one include render to texture?

alelievr commented 2 years ago

does the master one include render to texture?

Yes, when you put a render texture in the camera, the UI will be rendered to this render texture with master

alelievr commented 2 years ago

RenderTexture was officially shipped with the 1.1.0 release: https://github.com/alelievr/HDRP-UI-Camera-Stacking/releases/tag/1.1.0