- Home /
Accessing Light in Cg Shader
Hello, How can I access LightPositions in shaderLabs? I'm currently working with Cg Shader and I wouldn't like to use the unity surface system.
Comment
Best Answer
Answer by zpinner · Jul 07, 2012 at 12:07 PM
http://docs.unity3d.com/Documentation/Components/SL-BuiltinValues.html
_ObjectSpaceLightPos float4
Your answer
Follow this Question
Related Questions
Passing custom vertex attributes to cg shader 0 Answers
Meta pass and Precomputed Realtime GI 0 Answers
How to add shadows to surface shader? 1 Answer
Shader behaves different in other scene / project 0 Answers
_LightMatrix0 and Directional Light 1 Answer