quick question: in shader index 1 in my_array will be as index 0?
UPD:
index 1 in Lua = 0 in shader
I’ve refactored shadow+lights shader using two new features: matrix constant and arrays for constant buffer. Works good on PC! Did’t test on others platforms yet.