You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This doesn't cause any errors, and "did it" gets printed, but it doesn't seem to affect the shadows either (I've tried setting cast_shadow to all values between -1 and 4).
For reference in case it helps, here's an extremely close up picture in of the shadows I'm seeing under the grass:
Would love any advice on the best way to generate instances that don't cast shadows using the VoxelInstancer!
P.S. This is such an incredible tool, thanks so much for building it! Really blown away after having tried various permutations of procedural terrain + foliage generators, amazing work!
The text was updated successfully, but these errors were encountered:
You have chosen to use the scene property to setup this item, so you should change options in that scene. That's why the properties are greyed out, it's because they all come from the scene and are only shown for reference.
The current implementation makes the scene take precedence over manual settings. The cast_shadow_settings in code does not work because of that.
I'm using a VoxelInstancer to spread stylized grass on a terrain. I can't seem to turn off "Cast Shadows", either in the editor or in code.
In the editor, I see this:
As you can see, the whole "Scene properties" submenu is grayed out and I can't click on the Cast Shadow select input.
I also tried turning off shadows via code:
`extends VoxelInstancer
func _ready() -> void:
library.get_item(library.find_item_by_name("grass")).cast_shadow = -1
print("did it")
`
This doesn't cause any errors, and "did it" gets printed, but it doesn't seem to affect the shadows either (I've tried setting cast_shadow to all values between -1 and 4).
For reference in case it helps, here's an extremely close up picture in of the shadows I'm seeing under the grass:
![Image](https://private-user-images.githubusercontent.com/198423097/411289835-f4c1535b-044a-4700-af51-fec2c24e35e0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNTk1NTgsIm5iZiI6MTczOTE1OTI1OCwicGF0aCI6Ii8xOTg0MjMwOTcvNDExMjg5ODM1LWY0YzE1MzViLTA0NGEtNDcwMC1hZjUxLWZlYzJjMjRlMzVlMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQwMzQ3MzhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jNjEzMzVjOWI4YWM2OWE1ZWE0ZDcyOWFjMGJhY2QzMmQwNWYwN2VkMTFmOWM1NmQxMjdjNGRkYmNhOTI2YWU0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FaUAAKzNf4C8Y7vlfYeTdAk81ufOYO-btC62ZV2YkFg)
Would love any advice on the best way to generate instances that don't cast shadows using the VoxelInstancer!
P.S. This is such an incredible tool, thanks so much for building it! Really blown away after having tried various permutations of procedural terrain + foliage generators, amazing work!
The text was updated successfully, but these errors were encountered: