- Home /
How to make an object emit light without using the standard shader
Hello I've been googling for a while now and I can't find an answer to my question: How do I make and object emit light without using unity's default standard shader?
I've created a empty object witch spawns a point cloud of what the kinect is capturing so I created a shader in order to manipulate the point cloud and I wanted it to emit a light to the scene but my problem is I don't know how to do that. Yeah I know that unity has a bult in shader that alows to do that, the standard shader, the problem is I can't use this because I need the emission option in my custom shader that I built. I tried to put the standard shader and the shader I created in the same object but instead of aplying the standard shader options to the point cloud it creates a plane in front of it with the effects of the standard shader, I also tried to read the code of the standard shader to put in my own shader but I'm kind of new to shader code and the code that comes with the standard shader it's so coplicated (at least for me) that I don't know witch part code it's the code from the emission option.
I don't know what to do now, if you guys know the code that gives my object an emission propriety or if you know another way aroud it please respond, it would be a great help, thank you.
Your answer
Follow this Question
Related Questions
Light Falloff Post Process Effect? 0 Answers
Unity Advanced Shader Help 0 Answers
Can I modify light position data before it gets sent to the shader? 1 Answer
Control light intensity via shader script 0 Answers
How can I add volume/depth to shadows? 0 Answers