|
@@ -640,7 +640,7 @@ void SceneShaderForwardClustered::init(const String p_defines) {
|
|
|
|
|
|
actions.renames["NODE_POSITION_WORLD"] = "read_model_matrix[3].xyz";
|
|
|
actions.renames["CAMERA_POSITION_WORLD"] = "scene_data.inv_view_matrix[3].xyz";
|
|
|
- actions.renames["CAMERA_DIRECTION_WORLD"] = "scene_data.view_matrix[3].xyz";
|
|
|
+ actions.renames["CAMERA_DIRECTION_WORLD"] = "scene_data.inv_view_matrix[2].xyz";
|
|
|
actions.renames["CAMERA_VISIBLE_LAYERS"] = "scene_data.camera_visible_layers";
|
|
|
actions.renames["NODE_POSITION_VIEW"] = "(scene_data.view_matrix * read_model_matrix)[3].xyz";
|
|
|
|