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
Godot 4 lighting issue when using shader material #91626
Comments
Please upload an MRP |
uploaded |
Update: It turns out the whiteness of the grass blades is caused by alpha issues, the edges were white so it made it seem the whole blades were white. But there issue when with directional light and shader material still persists. I've updated the screenshots. |
|
Thank you! I didn't think to change the options even though I noticed it before. What is the difference between the Normal and Normal Map? |
Normal overwrites the per-fragment normal value and is specified in view space. Normal_map applies a normal map on top of the per-fragment normal and is specified in tangent space (the same space as your normal map texture) |
Tested versions
4.3 dev5 and 3.4 dev4.
System information
Godot v4.3.dev5 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21910.5) - Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz (4 Threads)
Issue description
when using visual shader to create some grass and using omnilight to light the grass, from most angles it looks very white, but the trees near the grass look fine, those are standard materials. from certain angles the grasses look ok but from other angles they appear very white. like I mentioned this happens only when using shader material and not standard material.
MAIN ISSUE: In the last picture I'm using spotlight and shadermaterial for the grass. There's a clear split between light and darkness. It happens when using directional, omni or spotlight.
FIXED (Issue with the alpha map):
Steps to reproduce
creating a shape with shader mat and a directional light will recreate the issue
Minimal reproduction project (MRP)
screenshots of the MRP can be found in screenshots folder. if the camera is in the center of plane and rotated around the lighting goes from dark to light and when looking at the plane from top down a line can be seen running through the mesh.
lightingbug.zip
The text was updated successfully, but these errors were encountered: