Skip to main content

All Questions

Tagged with
0 votes
1 answer
98 views

How do you detect edges in a PNG map

so basically i'm making a personal project based around a strategy map game. I'm using this image as the map: The problems are as follows: I can't detect the borders as it is not an SVG If the first ...
Macr Nostaski's user avatar
0 votes
0 answers
21 views

How do you make unity shader with custom lighting usable in deferred rendering mode

I found a unity shader with custom lighting method that approximates subsurface scattering effect. I tried using it in deferred rendering mode and unfortunately it doesn't work. From what I have read ...
V.R.S's user avatar
  • 35
0 votes
0 answers
49 views

How do I add an outline to a Unity tilemap?

Is it possible to add a nice outline to a unity tilemap? For example, if my tilemap looks something like the image on the left, I want to make it render like the image on the right: I found this ...
Robin's user avatar
  • 465
1 vote
1 answer
26 views

How to make tiling properties work with additional texture slots in a Unity Surface Shader?

I have created a custom shader based on Unity's standard surface shader, but tiling and offset properties don't work at all. Only the albedo texture slot's tiling works. How do you make tiling work ...
V.R.S's user avatar
  • 35
1 vote
0 answers
30 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?
d1spatcher's user avatar
0 votes
3 answers
141 views

How to use a Shader Graph to layer a texture over a sprite without being affected by the sprite's alpha?

I have a hexagon sprite MainTex over which I want to render an outline texture SecondaryTex independent of the alpha value of the MainTex. Since I have a fairly large grid with many hexagons, two ...
Jachuc's user avatar
  • 45
1 vote
1 answer
95 views

How do I render a sector (pie/cake slice) of a circular Unity 2D GameObject?

I have a circular GameObject in Unity 2D with a SpriteRenderer attached. I want to attach a custom component to my ...
Robin's user avatar
  • 465
0 votes
1 answer
55 views

UV offset moves over time that can change speed

In Unity, using URP/Shader Graph, I have a peculiar problem. I have a warp tunnel that has a texture and a shader "animation" to make it appear as if the player is moving forward through it. ...
Battle's user avatar
  • 1,285
1 vote
0 answers
24 views

How to add a simple extra shader effect in Unity's URP in code

I would like to be able to add certain simple graphical effects to objects in my game. For example, I want dead enemies to fade out, I want enemies that get hit to flash white, all easy stuff. So far ...
Lara's user avatar
  • 121
1 vote
1 answer
78 views

Why do I see a wireframe when rendering with conservative rasterization and disabled Z writes?

I wrote a shader that implements most ShaderLab commands: Rendering without anything fancy: After enabling conservative rasterization: After disabling Z write: Ironically, that's exactly what I ...
aybe's user avatar
  • 815
0 votes
1 answer
98 views

How Can I programatically identify a Material in Unity?

I have some gameobjects that in some conditions have an additional material added to them programatically at runtime. I then later want to be able to remove that specific material. How can I identify ...
Michael's user avatar
  • 103
0 votes
0 answers
64 views

How to project textures on to the mesh and overlap them like in Let’s Play Pottery?

I want to learn how to project textures on to the mesh and overlap them like in Let’s Play Pottery. I have an idea for game. I created Models, 3d viewer but I can’t figure out how to implement texture ...
Danish Arain's user avatar
0 votes
1 answer
47 views

Use AnimationClip to turn a material pitch black and then back to its original color

I have an object that has 2 materials, both using the URP/Lit shader. One of them is emissive and its color changes at runtime. I would like to create an effect where the two materials become pitch ...
jenkins's user avatar
  • 111
0 votes
1 answer
200 views

Water shader Breaks on Build

A custom shader I made is breaking on build. Here's what it's supposed to look like: Yet, on the build it looks like this. The surface is completely flat, all details are gone, and sometimes the ...
Mashimaro7's user avatar
0 votes
0 answers
75 views

Why distant objects are becoming white when camera is still?

I have a shader attached to quads that I'm generating far away using script. The quad is capable of keeping the color when camera is moving however the color becomes white when camera is still. I can'...
Shromi's user avatar
  • 115

15 30 50 per page
1
2 3 4 5
47