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.
Real time light calculations, are performed using a local lighting model (without considering additional technique like GI or lightmaps). This...
Cg promote the float to a float3 vector, so both lines are equivalent. even if a bit obscure from my point of view. In every language (even C++)...
I don't think you can do it exactly how you want. Basically a shader is compiled taking as input a single .shader source file (eventually...
Ok..good point, but I already considered that: Even removing the tag doesn't fix the issue Despite the main directional light is only available...
I suggest you to profile before making any assumption. You may find out that you have no reason to optimize. I can't give you a precise answer,...
Hi, I'm in trouble trying to multicompile a shader variant which is active only when a directional light is active in the scene. Accordingly to...
Never mind..I just figured it out.. Shader is fine it was just missing the LightMode tag: Tags { "RenderType"="Opaque" "Queue"="Geometry"...
Hi, I'm trying to sample light probes baked values from a Cg shader. This is the code: Shader "SHDiffuse" { Properties { _MainTex...
I've read a couple of threads asserting that Graphic.DrawMesh will break dynamic batching. The official documentation doesn't state anything...
Who are you? M.Oliviero - Programmer What kind of game are you trying to build or would like to build? I target mostly mobile platforms (iOS,...
And what about Intensity? How would you implement it?
AFAIK it's not possible. I tried that with #pragma directives and it doesn't seem to be possible. I guess it's reasonable to multicompile only...
Oh..thank you so much... I've looked at the matrix so long without figuring it out.. It works perfectly !
Sorry, was just a type while copying code. I'm already used the latter version. This is the effect showing only cookie attenuation: [img] The...
I tried to implement your solution but the result seems still wrong. I tested the shader for both the transformation in light space and the...
Thank you so much for spending your time in such a detailed and clear explanation. The part I was really missing was to use the cotangent to...
I'm trying to understand exactly how spotlights are implemented in Unity. I saw how attenuation is implemented: inline fixed...
BUMP. Any clue? I have the same problem with Unity 4.3.2 and Windows 7. Last time I solved removing completely unity from the pc, including...
Just found the way. Fbx meta files stores the data relative to mecanim animation curves. I can simply copy and paste from/to them or write an...
I've got several fbx files with attached an animation clip for each fbx. I noticed that I can specify animation curves to be used with mecanim...