- Home /
Question by
Alamaise · Oct 23, 2013 at 03:20 PM ·
shaderrendererlight probes
How can I switch between direct lighting and light probes in a shader?
We have created a set of custom vertex and fragment shaders. They use the regular ShadeSH9 function to sample the light probes.
Sadly, this disables any direct lighting influence on the rendered objects. How can I have that back and, maybe even more importantly, detect and switch in the shader if a user has enabled/disabled light probes for the renderer.
Thanks!
Comment
Your answer
Follow this Question
Related Questions
How to find and assign Default-Particle material to a renderer 2 Answers
Unity 5.4 - SetVectorArray - how to read values back from MaterialPropertyBlock? 0 Answers
Select material of Canvas Renderer 0 Answers
How to make a localToWorld matrix for shader parameters? 1 Answer
Changing the color at runtime is causing my material to look very different. 1 Answer