Custom mesh not affected by light
I'm generating terrain by chunk and the first chunk generated is never affected by light. For example, I just put the Sky Light value to 0 and this is what I get :
This is what I get with normal lighting :
Somebody has an idea ? I don't change anything related to light in my code (even if I remove the Material, I have this issue). Why is the engine not taking into account the first generated AActor ? This code is called like so : in level blueprint I spawn an Actor (ChunkManager) and this Actor creates overtime multiple Chunk in AChunkManager::Tick. Chunk setTriangles for its mesh in AChunk::generateMesh (called by AChunkManager).
asked Jun 02 '15 at 12:36 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here