1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Add soft shadows to the CPU lightmapper

Adds the "light_size" property to Lights. It's only considered in baked
lightmaps for soft shadowing purposes.
This commit is contained in:
JFonS
2021-07-05 15:55:52 +02:00
parent 19359a9654
commit a2ba7910ba
12 changed files with 187 additions and 119 deletions

View File

@@ -2002,6 +2002,8 @@ void VisualServer::_bind_methods() {
BIND_ENUM_CONSTANT(LIGHT_SPOT);
BIND_ENUM_CONSTANT(LIGHT_PARAM_ENERGY);
BIND_ENUM_CONSTANT(LIGHT_PARAM_INDIRECT_ENERGY);
BIND_ENUM_CONSTANT(LIGHT_PARAM_SIZE);
BIND_ENUM_CONSTANT(LIGHT_PARAM_SPECULAR);
BIND_ENUM_CONSTANT(LIGHT_PARAM_RANGE);
BIND_ENUM_CONSTANT(LIGHT_PARAM_ATTENUATION);