hobby-ish gamedev. This website contains my raw notes and documents my progress.

← Lights in Godot Shadows deep dive →

CSG nodes

When playing around with baking lights in godot i found that csg nodes in godot dont have the “unwrap” button as meshes do.

Meshes:

CSG:

Bake Mesh Instance creates a MeshInstance3D by duplicating the form of the csg and places it at the same location. This increases performance of the scene when the csg node is removed or disabled, as meshes are more performant than CSG nodes. Bake Collision Shape creates a CollisionShape3D node, again with the same form of the csg node.

You will get a yellow warning that the CollisionShape3D node doesnt have a proper physics parent. The way to fix this is to have the whole level with all its csg nodes parented to a staticbody3d node, which is a physics body.

← Lights in Godot Shadows deep dive →