-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
StandardMaterial doesn't work in webgl2 on Windows with DX12 #10048
Comments
FYI @JMS55. |
Hmm, I don't understand yet. All PCF paths lead to |
Affecting all scenes that use StandardMaterial, even if they don't have shadows, seems very strange to be related to the PCF PR. Are you certain of that? |
I imagine the shadow code gets included in the shader anyways. |
# Objective Webgl2 broke when pcf was merged. Fixes #10048 ## Solution Change the `textureSampleCompareLevel` in shadow_sampling.wgsl to `textureSampleCompare` to make it work again.
# Objective Webgl2 broke when pcf was merged. Fixes bevyengine#10048 ## Solution Change the `textureSampleCompareLevel` in shadow_sampling.wgsl to `textureSampleCompare` to make it work again.
# Objective Webgl2 broke when pcf was merged. Fixes bevyengine#10048 ## Solution Change the `textureSampleCompareLevel` in shadow_sampling.wgsl to `textureSampleCompare` to make it work again.
# Objective Webgl2 broke when pcf was merged. Fixes bevyengine#10048 ## Solution Change the `textureSampleCompareLevel` in shadow_sampling.wgsl to `textureSampleCompare` to make it work again.
Bevy version e67d63a
The release number or commit hash of the version you're using.
The issue was introduced at 1f95a48 with #8006.
Relevant system information
What you did
Try to run the 3d_scene example in webgl2.
What went wrong
Update: I get this error with any scene that uses the
StandardMaterial
, not just ones with shadowsChrome:
Firefox:
The text was updated successfully, but these errors were encountered: