Questions tagged [urp]

The Universal Render Pipeline (URP) is a prebuilt Scriptable Render Pipeline, made by Unity. Use this tag for questions related to URP in Unity3D.

124 questions
1
vote
0 answers

"Pink material" problem with Vuforia Model Target and Unity Universal Render Pipeline (URP)

I created a new Unity 3D project, which uses the new Universal Render Pipeline (using the official project template). I also added the latest version of Vuforia Engine AR and added a Vuforia Model Target Database by importing a .unitypackage file…
RamboNo5
  • 2,050
  • 2
  • 17
  • 26
1
vote
1 answer

I am getting an error on shader graphs/Master on Unity URP 2022.3.4f1

I have created URP fullscreen Shader Graph but i am having an error when i open shader graph tab on Unity. I am started to learn use custom shaders in unity but i did not understand why this problem occurs. I deleted the library folder and…
1
vote
0 answers

Unity URP no shadows at edges of inside corner. Light bleeding through walls/edges. Shadows not rendering properly inside

I imported some FBX meshes into Unity, but even though the geometry is solid, the shadows on the inside edges do not render correctly, almost as if light is bleeding through the edges, even though it is completely sealed. Where the deck meets the…
1
vote
0 answers

Unity URP fog works on scene objects but not loaded assetbundles - why?

I'm using Unity 2021.3.15 LTS with URP, and I'm having trouble with fog. When I create an object in my scene and turn fog on using the Environment tab of the Lighting window, the fog effect works fine. However, when I save that object to an…
Semaj56
  • 11
  • 2
1
vote
1 answer

How to use URP Sample Buffer in custom function node in Unity Shader Graph

I need to sample the source buffer NormalWorld from the URP Sample Buffer for a range of UVs. In order to make this easier, I want to iterate through the range of UVs in a Custom Function Node. My issue is that I do not know how to sample the…
BlueBossa
  • 151
  • 1
  • 8
1
vote
1 answer

Unity URP shaders invisible

I am trying to create shaders for Unity URP. However, even when I copy the code from the Unity docs, the material and the GameObjects it is applied to are invisible and not a constant color that should appear. I also followed this tutorial, but the…
RD4
  • 135
  • 1
  • 12
1
vote
0 answers

Unity bloom effect not working (cinemachine, URP)

I've been working on a fairly large project in Unity. Until recently, we weren't using universal render pipeline (URP) and made that change. When we did, all the bloom effect we already had in place to create a neon glow look for our game…
Ana Cruz
  • 93
  • 7
1
vote
1 answer

Unity Camera with RenderTexture problem, how to get the right output?

I have a scene need to display a 3d module to ui layer, so i use a secondary camera to render it to a RenderTexture, but when i set a background to the ui layer ,i found that the content is wrong, because the alpha channel is not what i…
gkd
  • 31
  • 3
1
vote
1 answer

How to add post processing to UI (UI toolkit, NOT CANVAS) in Unity?

I'm working on a Unity game and I want to add chromatic aberration to the interface but have no idea how to do it and can't find anything similar on the Unity docs site. I don't use Canvas, I use UIDocument. My project uses Universal RP but I will…
1
vote
0 answers

How to use other camera depth buffer to render the scene on another camera in URP?

I have two camera in the same position. I want to use the first camera's depth buffer to render the scene again on the second camera. Use case: I want to detect if a line that I draw on the 3d space is rendered behind an object or not. To do that,…
Bluilisht
  • 11
  • 2
1
vote
1 answer

Set camera Depth Texture to None via script

I'm instantiating a camera in my code: GameObject go = new GameObject("Second Camera"); Camera cam = go.AddComponent(); My question is: how to set Depth Texture as None in the code? When I instantiate, it always starts with this Use…
Daniel
  • 7,357
  • 7
  • 32
  • 84
1
vote
1 answer

Lights are dark in build, but are fine in editor

I am using URP Version 12.1.7 and Unity 2021.3.9f1. Lights are fine in the editor, but in build it becomes too dark. Before Unity update everything was fine.
1
vote
1 answer

Unity shader (HLSL) equivalent of Unity macro "COMPUTE_EYEDEPTH"

Converting a Unity's cgim shader to HLSL (URP). I am stuck on Unity's macro in depth texture "COMPUTE_EYEDEPTH", Docs: https://docs.unity3d.com/2020.1/Documentation/Manual/SL-DepthTextures.html. Can you share HLSL equivalent?
1
vote
1 answer

The alpha of decals is not completely transparent in Unity

I wanted a quick way of displaying the range of stuff in my game, so I thought: do it with decals around it! Fast and easy! However, the parts of the decals that are transparent do not appear completely transparent during gameplay. They darken or…
1
vote
2 answers

How to access things in postproccessing from scripts

Hello I have bean making my game and I created a booster for my car and I want to have vignette effect when I step on it, I don't know how to make a script to get the post processing and change the vignette thing. Thanks!
1
2
3
8 9