Hello, I need help with this shader, I would like it to be auto lit but the only thing I get is that the textures are not seen and I get all white if I add Lighting On, thanks in advance.
If you’re looking for a shader that automatically supports Unity’s lighting system, then what you have should be enough assuming your scene has lights in it.
If you’re looking for something that is unaffected by lights in the scene and always appears fully “lit” on all sides, that’s an unlit shader. You likely want to use a vertex fragment shader instead of a Surface Shader, which exists explicitly to help write shaders that work with Unity’s lighting system.
If you’re looking for something that works with Unity’s lighting system, but also “glows” even if there are no lights in the scene (which the shader’s “SelfIllum” name suggests), you probably want to add o.Emission = c.rgb; to your shader.
This shouldn’t do anything anymore. It’s an old holdout from fixed function shaders which this shader is not. If adding that has any effect, it’s likely a bug.