A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
This line o.lightDir = normalize(ObjSpaceLightDir(v.vertex)) fills lightDir. So it's not automatically filled in at all. ObjSpaceLightDir gives...
What's _lightDir anyway? It's used in surface shaders. Is it available in frag function? I am creating an effect like looking at earth from...
How do I get light information in vert or frag programs? I am pulling my hairs here. What are these? inline float3 WorldSpaceLightDir( in...
This is used to specify tiling and offset for each texture. See the tiling and offset parameters next to each texture box? Their values are...
Hi Guys, I need to use normal the result of diffuse light shader as alpha to blend two textures together. How can I do this? Combine src1...
Thanks! Makes perfect sense. Still some newbie questions: Sometimes I see vert function outputing POSITION, sometimes it's outputing SV_POSITION....
Hi Guys, I am a newbie to shader programming. I have a quick question that needs explaining. We know vertex shader does work on each vertex,...
awesome job dude. exactly what I am looking for.