Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - GOKOP

Pages: [1]
1
Graphics / Re: How to make transparent RenderTexture?
« on: September 28, 2016, 04:03:01 pm »
I tried it and didn't help, but problem was somewhere else, already solved, but thanks anyway.

2
Graphics / How to make transparent RenderTexture?
« on: September 26, 2016, 06:54:20 pm »
Hi,

I'm making a tile-based game where there are several layers of tiles on map, so player can be covered by tiles from higher layer. I also render tiles to texture slightly bigger than the screen, which is updated only when view gets close to it's edge. In order to make this layer effect I make two textures, one for tiles below player and one for tiles above him. The problem is that the upper texture needs to be transparent in places where there's no tiles, so tiles from lower texture can be seen, but RenderTexture seems to be initially black and I can't see a way to make it transparent.
Any ideas?

Pages: [1]