Questions tagged [unity-urp]
The unity-urp tag has no summary.
54 questions
0
votes
1
answer
70
views
Can PNG format be used for alpha channel-packing for URP shader in Unity engine?
Note: I intend to use only the Inspector window to use all textures, not Shader Graph or Nodes or any custom scripts. Also I might use some technical terms incorrectly by mistake, as I'm not much ...
0
votes
1
answer
108
views
URP Maximum Sample Index (16) with Light Cookie Input
I just recently imported a new asset package, all of the materials use the URP lit shader, no custom shaders. However, now I can't build the game because I keep getting the same errors:
...
1
vote
1
answer
91
views
Why does dynamic light flicker/get replaced with a square when rotating the camera?
I am facing the same problem over and over again with Dynamic Lights in Unity and don't know where next to look. I am still learning Unity so maybe I'm missing something trivial because it happens in ...
3
votes
2
answers
1k
views
Rendering transparent UI in Linear Color Space
As you may know, Unity can have issues correctly rendering transparent 2D Sprites/Textures exported from Photoshop or Figma. Reason being that most of these tools operate in Gamma color space while ...
1
vote
0
answers
66
views
Can I apply a single material over every submesh?
I have a shader for outlining an object, how do I apply the material with this shader to all submeshes, not just the last one?
0
votes
1
answer
247
views
Combine 2D and 3D lighting in Unity
I am using URP and would like to have 2D and 3D objects in the scene affected by lights.
This is not supported by Unity, however the docs said that one can use "Camera Stacking" for this ...
0
votes
1
answer
149
views
Light dissapear when baking in Unity
I am playing around with Unity and lighting is proving to be the most nerve racking thing about it so far.
I think I understand the types of light and pros and cons of bake vs realtime but when I do ...
0
votes
2
answers
891
views
How to convert from object space to clip space
I want to animate foliage with vertex animation but I have wrong output because I can't correctrly transform from object space to clip space, and my foliage goes off the model. How Can I convert in ...
0
votes
0
answers
103
views
Terrain and SpeedTree objects render correctly in Editor, but not in Build in both Legacy and URP
The game runs and shows perfectly in Editor, but when I make a build, terrain and some other objects become invisible. This happens the same in both Legacy (Standard) and URP.
I tried to create shader ...
0
votes
2
answers
283
views
After adding a new Assembly File the "Volume" class is no longer found
I added a new assembly file to a folder containing my Unity scripts. After setting the Assembly Definition References all Classes of other assemblies are found except ...
1
vote
0
answers
280
views
Recreating The Visual Effect From Super Mario RPG Remake In Unity URP
The upcoming remake of Super Mario RPG uses an effect that adds a 'colorful fog'(I'm really struggling to describe it 😅) to certain parts of the screen. It's mostly used in the corners and top of ...
5
votes
2
answers
19k
views
Why is my Post Processing not working?
I'm trying to get Post Processing working in my Unity Project, with URP enabled, but I'm not seeing it work. I've looked at a few tutorials and I've followed them exactly, but I never see any post ...
0
votes
1
answer
2k
views
The Unity 2021 URP 2D Renderer Sprite-Unlit-Default material transfers transparency of layered sprites to render texture
So, complicated title, but I am not sure how to properly describe this phenomenon.
I have switched recently from Unity version 2019 to 2021 to use the URP 2D-Renderer and make use of the ...
1
vote
1
answer
1k
views
How to create a ScriptableRenderPass that renders normally, with lighting?
What I'm trying to do: Render GameObject(s) of a specific Layer in my custom pass. I want to do something more later, but I'm just trying to get it to render exactly as URP would for now.
I'm just ...
0
votes
1
answer
3k
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 ...
0
votes
1
answer
87
views
Can we use Universal RP shaders for some objects and Mobile shaders for other objects in a Unity scene?
I am sorry if this question sounds silly. But, I am new to Universal RP shaders, and have to ask this question.
Previously, in my project, I had many beautiful objects that use Mobile shaders.
Today, ...
2
votes
1
answer
1k
views
Why can't I write to depth buffer if I specify the render target to something different than the default camera frame buffer?
Using Unity's URP I've been trying to setup a scriptable render feature which will add a pass which draws objects on a certain layer to multiple render targets. Unfortunately, I am not able to get it ...
0
votes
0
answers
793
views
URP Camera Stacking. Different intensity of bloom in different objects
I understand that this topic has been raised more than once, but I have not found detailed step-by-step instructions anywhere on how to do this.
Install the Universal RP and Post Processing packages.
...
0
votes
0
answers
1k
views
How do I prevent a camera from rendering post-processing effects to a render texture in URP?
So here's my situation. I have two cameras in a game about a bee. The game uses the Universal Render Pipeline. One of them detects blooming terrain at a distance, and is sensitive to its own layer (...
1
vote
0
answers
566
views
Unity URP Water Shader working in Scene View, in the Preview Window... but all white in Game View?
I downloaded an URP compatible Water Shader from the asset store.
First I tried it with 2022.1 but for some reason while in Scene View it looked great, in Game View it's all white. (Sometimes a watery ...
3
votes
1
answer
1k
views
Why is this back-facing texture showing through?
I have a mesh of some walls and a floor that I want to be visible from both sides. I duplicated the faces and flipped their normals in Blender, then exported it as an FBX to import in Unity. I've set ...
0
votes
1
answer
666
views
Render texture seems to ignore camera background type
I'm currently trying to pull a fog of war for an rts game, and planned it like this. (Unity 2020.2.7, URP 10.3.1)
Use units field of view to generate a texture of what is seen (alpha 0).
Create other ...
0
votes
0
answers
568
views
Gradient border/drop shadow URP unity shader graph
I am using Unity Universal Render Pipeline and shader graphs in my game. Does anybody know how I would go about setting up a shader graph that adds a black gradient drop shadow/border with the game ...
0
votes
1
answer
1k
views
Raycast is not restricting by other layer collider
I have converted my project to URP and suddenly I found the situation where my Raycast code even is working beneath the collider (other layer colliders):
...
0
votes
0
answers
121
views
Pix2Pix implementation in URP
I wanted to implement this project (generating image with deep learning algorithm) in an URP project as a PostProcessing Effect.
I did use ScriptableRenderPass, which sound like the correct way to do ...