Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VoxelGI albedo color is white with custom shaders #79068

Closed
Muini opened this issue Jul 5, 2023 · 2 comments
Closed

VoxelGI albedo color is white with custom shaders #79068

Muini opened this issue Jul 5, 2023 · 2 comments

Comments

@Muini
Copy link

Muini commented Jul 5, 2023

Godot version

4.0.3

System information

MacOS - 4.0.3 - Forward+ - Vulkan

Issue description

image

On a more complex scene

image

VoxelGI does not take custom shader albedo into account, resulting in white voxels.

It's possible to fix it by setting the mesh as Dynamic, but I don't think it's a good solution.

Steps to reproduce

  • Add a MeshInstance3D with a Sphere geometry, and a custom shader material
  • Set the albedo of the custom shader to red
  • Add VoxelGI to the scene
  • Bake VoxelGI
  • Either use a reflective material, or use debug view VoxelGI albedo

Minimal reproduction project

VoxelGI bug.zip

@viksl
Copy link
Contributor

viksl commented Jul 5, 2023

Can confirm this on Windows 10, godot 4.1 RC3, nvidia GTX 1660Ti.

In the picture below it's three spheres, starting from left:

  1. StandardMaterial3D
  2. ShaderMaterial, visibility set to Dynamic
  3. ShaderMaterial, visibility set to Static

Screenshot 2023-07-06 003548

@Calinou
Copy link
Member

Calinou commented Jul 6, 2023

Thanks for the report! Consolidating in #64124.

@Calinou Calinou closed this as completed Jul 6, 2023
@Calinou Calinou added archived and removed bug labels Jul 6, 2023
@Calinou Calinou removed this from the 4.x milestone Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants