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
0
votes
1 answer

How to use compute shaders on mobile unity?

I have been studying compute shaders and tried to test it on mobile phone (android). But it is always throwing error. Kernel 'CSMain' not found UnityEngine.ComputeShader:FindKernel(String) Compute shader has no code. // Each #kernel tells which…
Raguel
  • 595
  • 8
  • 25
0
votes
2 answers

Unity _MainTex property doesnt exsit when it clearly does

So Im trying to create an outline using shaders and materials, however, i cannot seem to get the image of the material reflecting the image on the sprite render, please help. Like it keeps saying i dont have _MainTex but its quite clear i do, and…
0
votes
1 answer

Lightweight Render Pipeline messes the textures of the objects

I was working on one of Unity's tutorial projects(the cute nightmare survival one) and wanted to add something cool using Lightweight RP. But upgrading to Lightweight RP messed up my textures. Apart from turning to everything pink when I go…
0
votes
1 answer

How would I change this shader code to change the axis it causes the object to rotate around?

I'm playing around with the code in this Unity sample game to find out how to transform objects with shaders. The game uses shaders to curve the world, and one of those shaders also causes objects to rotate around their y-axis. I'd like to modify it…
ninjachicken1
  • 177
  • 1
  • 1
  • 10
0
votes
1 answer

unity button discarding pixels in shader

i'm working with buttons for which i'm using my own shader. this works fine, except unity seems to be discarding/clipping pixels before they ever get to my shader. my image has the top and bottom thirds transparent. if i do something like…
mike
  • 536
  • 1
  • 6
  • 16
0
votes
1 answer

How can I get the lighting information from a skybox?

I am freshman to the Unity3d shader. I am writing a custome unlit shader now. I know I can use _WorldSpaceLightPos0.xyz and _LightColor0.rgb to get the information of a directional light source. However, if I have a skybox instead of a light source,…
TIANLUN ZHU
  • 349
  • 1
  • 14
1 2
3