- Home /
How to correctly render an object with a CommandBuffer?
Hi there,
I'm writing a basic command buffer but every object I render with it using the DrawRenderer() command seems to lack a lighting/shadow pass.
Here the red cube is rendered with DrawRenderer, not directly by the camera.
Simple question: I'd like my cube to be correctly lighted, what command(s) should I add?
Ps: I'm in Forward and plan to have only one directional light, and need to precise that I can only have one camera
Thanks in advance!
Comment
Your answer
Follow this Question
Related Questions
How do I make edges in shadow more distinct? 0 Answers
Lighting of large objects not working with Unity 5? 1 Answer
HDRP Point Light shadows issue 0 Answers
Problem with focus and rendering 2 Answers