In case of treating many kind of materials, some information are omitted because they are not needed. and if they are not handled, CPU will pass nothing to GPU(or vertex to frag).
In this case, should I concern if variables(especially uniforms) are correct(passed) or not in the shader?
Or, should I handle variables in CPU and trust that variables are correct(passed) in the shader?