Skip to main content

Questions tagged [rendertexture]

A texture to which content can be rendered.

0 votes
1 answer
67 views

How to convert a dynamic VIewportTexture to a "static" one?

Assume there is a viewport that "looks" at some Sprite2D. This viewport's view is providing the texture for a Sprite3D ...
Noideas's user avatar
  • 17
1 vote
0 answers
33 views

How to pass two RenderBuffers into one RenderTexture?

I have a Unity URP project and in the Scriptable Render Pipeline, I would like to create a RenderTexture and pass the depth and color buffer of the camera object as ...
Fox1942's user avatar
  • 131
0 votes
0 answers
35 views

In Unity 2021.3.29, why is a total volumeDepth of just 100 for global texture arrays slowing down the entire game?

In order to apply the metaball effect on a pixel in the Dest RenderTexture, I need the minimum distance to every game object that is involved in generating the metaball effect for that pixel. This ...
rasputin's user avatar
0 votes
1 answer
68 views

How to render a portion of a texture (upscaled) without affecting the border with SDL2?

I noticed that render a portion of the texture, upscaling it, it affects is border values with the proximity of the outside remaining parts of the texture (when not using Neareast neighbour ...
Raffaello's user avatar
  • 125
0 votes
0 answers
721 views

Why is my RenderTexture y-flipped?

When drawing a very simple RenderTexture using Raylib, with the following POC code, the texture actually drawn is vertically inverted. Is that normal? If not, what ...
SteeveDroz's user avatar
1 vote
0 answers
901 views

`Graphics.Blit` into a render texture using a custom material outputs black

Context I am writing a ScriptableImporter for a specialised image format (the specifics are not relevant). To do so, I need to semi-procedurally generate a ...
Kroltan's user avatar
  • 396
2 votes
0 answers
203 views

Is it possible to extract both the color and the depth texture from one RenderTexture and use it in a Shader?

I can access the same with duplicating the cameras AND the rendertextures, but that seems like a lot of overkill of just getting the depth buffer. I don't need a very precise depth buffer, so it can ...
Dirk Boer's user avatar
  • 139
0 votes
0 answers
986 views

How to make background of render texture transparent in Unity

I am using render texture to display a model of a 3D character on a menu. I would like the background of the render texture to be made transparent. I have tried to make it transparent by editing the ...
mjbelanic's user avatar
0 votes
0 answers
718 views

How to make shader graph RenderTexture deform effect more accurate?

I have followed a PolyToots tutorial (https://www.youtube.com/watch?v=3T8cKTQrMxk) to make a 'rug deform' effect. This is great except for that the vertices aren't deforming faithfully enough to ...
yunum's user avatar
  • 69
0 votes
1 answer
2k views

Render texture not rendering camera output correctly

I have a strange problem that I am not sure if it is a bug from Unity or not. I have render texture that renders camera output to a raw image. Camera looks at a object that consists of 2 parts: the ...
Ivan's user avatar
  • 349
1 vote
1 answer
183 views

Creating RTV for each array slice of a Texture2DArray

I'm trying to implement depth peeling onto a 2D texture array, where each array slice corresponds to a depth layer. In order to do this, I'd like to draw to subsequent array slices of this texture, ...
user722227's user avatar
0 votes
1 answer
64 views

correct matrix to draw mesh as flat object

I need to draw a tilemap for a 2d game. For that I created vertices with their relative positions already hard baked. The coordinates start top-left with (0f, 0f) and z is always 0. I rendered them to ...
codymanix's user avatar
  • 364
1 vote
2 answers
1k views

Why is part of my render texture see-through in Unity?

I have a camera that is looking at an object with render texture output and I use that render texture on raw image in UI. Object itself has 2 parts: the ball kind of a semi transparent mask. And ...
Ivan's user avatar
  • 349
2 votes
1 answer
1k views

Sprite created with RenderTexture and ReadPixels() has multiplied colors

I'm working on a character generator that creates thumbnail sprites for each character. I'm using a separate camera that renders to a RenderTexture, which is used ...
Acme Nerd Games's user avatar
0 votes
1 answer
72 views

Multiple viewport resizing

I wonder how multiple viewports are handled in engines in terms of render targets buffers. Especially in the case of their resizing (for example changing the size of windows/viewports in Editor dock ...
justix's user avatar
  • 11

15 30 50 per page
1
2 3 4 5 6