Cascaded Shadow Generator + Node Material

Hello, somehow the node material is not compiling when using cascaded shadow generator.
Works fine with normal ShadowGenerator. Not sure if this is a node material issue or shadows.

BJS - [19:55:07]: Offending line [153] in vertex code: vPositionFromCamera0=view*worldPos;
BJS - [19:55:07]: Error: VERTEX SHADER ERROR: 0:153: 'view' : undeclared identifier

You must link the View matrix block to the view input of the Lights block for the shadows to work.

2 Likes