Questions tagged [unity3d-shaders]

For all questions related to shader technology, in Unity3D.

Use the tag for any questions related to shaders in Unity3D development.

The Unity3D game engine generally uses it's own shader language, which is, generally similar to but subtly different from other shader languages in the ecosphere.

36 questions
1
vote
0 answers

BIM Model clipping issues in Unity 2020

I have BIM model that I am using in 2018 version of Unity engine. When import the model into my project on 2019 OR 2020 version of the Unity engine, clippings on certain surfaces of the model occurs. Has anyone encountered this issue with Unity…
1
vote
1 answer

Unity Shader Graph - How to Change Parameters --- How to change a parameter of a mesh on all objects at the same time?

I created my first shader by following this video. Dissolve Shader Video Link In a Coroutine,i took the Material's component from the object: PalaceMaterial = palaceInstance.GetComponent () .material; I set the parameter to…
SebyLiberty
  • 47
  • 3
  • 10
1
vote
1 answer

Global Tiling in HDRP Combined with Parallax Occlusion Makes Messed up UVS

I'm trying to make a custom shader with Shader Graph on HDRP. The intention is to automatically tile textures based on global position so I don't have to worry about remaking materials when I resize things etc. (I'm sure you can imagine the…
1
vote
1 answer

How to fix normals on shader

I have a problem with a shader I made/cobbled together from bits of code Initially my plan was to was a shader at runtime Shader on disabled object? But this seems to be the wrong thing to do, as its my understanding now that shaders can't be…
StackBuddy
  • 577
  • 5
  • 17
1
vote
0 answers

Shader on disabled object?

Hi unity peoples I found this effect (disabled greyed out) while looking for something in the hierarchy panel I like it! - How would it be possible to add this kind of effect to game objects in game. are there any easy to implement solutions. is…
StackBuddy
  • 577
  • 5
  • 17
1
vote
0 answers

How to properly wrap texture on to gameobject at runtime?

The scale of my gameobject is 1,1,1 in x,y,z respectively I am scaling the gameobject to 1000,1,1 in x,y and z respectively at runtime. After scaling the gameobject i create a new UV mesh using this code as reference and apply Texture to my…
Suraksha Ajith
  • 872
  • 2
  • 12
  • 23
1
vote
0 answers

How to create a human model that has separate parts(hand, leg) in 3dsmax,Each part should be able to get selected as object in unity?

I m a beginner in both unity and 3ds max. When i create a human model that is used to load into unity when i create it , it would go as separated(which i want but during animation each part is getting separated and act independently) but when i add…
Pacub
  • 41
  • 7
1
vote
0 answers

Why my shaders half broken on some android devices?

I have shaders that cut hole in other meshes. On some android devices game starts bugy. After some time it fixes itself. When i reload scene it occurs again. Here is broken one Here is right one
smyl
  • 96
  • 8
1
vote
1 answer

Why material added to ui panel is not visible in android build but works fine in editor window in unity3d?

The material added to the UI Panel is working in the editor window but not working in android build. How to fix this? Editor Screenshot Android screenshot Note: I have tried adding a shader to "always Included shader" list in the project setting…
0
votes
0 answers

Invisible Occluder Effect in Unity URP

I am creating an AR Portal in Unity using URP (Webgl build), and I want an object to come out from it (Like this). I used to do it in the Standard Pipeline using the VR/SpatialMapping/Occlusion shader, which works as a DepthMask, only rendering the…
0
votes
0 answers

Transparency incorrect behaviour in unity

Creating two materials with render mode transparent and with two primitives added to the scene I get different faces rendered depending on the distance to the camera. Both materials red and blue have the default settings except from being set to…
rustyBucketBay
  • 4,320
  • 3
  • 17
  • 47
0
votes
0 answers

Is there a scalable way to use mesh volumes in Unity such that fragments drawn within them use a different shader path?

I want to include invisible geometry in my scene which, for all portions of a mesh within the geometry, one texture/shading path on their shader/material is used, blending to portions of the geometry NOT within the invisible volume using a different…
AberrantWolf
  • 486
  • 5
  • 18
0
votes
2 answers

Pink/Blue Tint on Build Unity URP Post-Processing Bloom

pink build blue build To preface this, we are using Unity 2019.3.0f6 and URP 7.2.1. About 1/3 of the time we load a scene of our game (in build only) it is tinted pink with an orange strip at the top (pictured in “pink build”) or blue with a green…
0
votes
2 answers

How can I get the actual size of a gameobject in shadergraph?

I need to get the actual size of the object within shader graph. I currently only have the Object > Scale node or the option of manually setting the size of object in runtime. Is there some way I can easily get the size of the object (or bounds)…
0
votes
1 answer

Unity gpu instancing shader wrong rotations

I am trying to make unity render lots of (1M) cubes all with different rotation, position and color. Position and color work fine, but the rotations are somehow calculated wrong. It manifests mostly when I rotate them around the x or z axes over 180…
K55
  • 1