We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using custom blending in materials in webgpu will throw an error if the alpha blending is not specified. The cause is because the default values are set to GPUBlendFactor which is then passed to _getBlendFactor which is wrong https://github.com/mrdoob/three.js/blob/dev/examples/jsm/renderers/webgpu/utils/WebGPUPipelineUtils.js#L192
const material = new MeshBasicNodeMaterial(); material.blending = CustomBlending; material.blendEquation = AddEquation; material.blendSrc = OneFactor; material.blendDst = OneMinusSrcColorFactor;
none
No response
r162
The text was updated successfully, but these errors were encountered:
Fixed via #28490.
Sorry, something went wrong.
No branches or pull requests
Description
Using custom blending in materials in webgpu will throw an error if the alpha blending is not specified.
![image](https://private-user-images.githubusercontent.com/78574223/313406973-86574d99-8e94-424e-9c52-aba60f10f3fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTEyOTIsIm5iZiI6MTczOTE5MDk5MiwicGF0aCI6Ii83ODU3NDIyMy8zMTM0MDY5NzMtODY1NzRkOTktOGU5NC00MjRlLTljNTItYWJhNjBmMTBmM2ZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEyMzYzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIwN2YzNmU1Y2E2MjVhZmZjNjMyMDZmMWY3YjgyMDc0MDEyMjlkMjkwMWJlYWMzNmJlMmQwYTkzODMzZGM0MWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.AYtK2wVUW6ApcREAhZk3DbSI-YbmsUkj3qVL90jHBZQ)
The cause is because the default values are set to GPUBlendFactor which is then passed to _getBlendFactor which is wrong
https://github.com/mrdoob/three.js/blob/dev/examples/jsm/renderers/webgpu/utils/WebGPUPipelineUtils.js#L192
Reproduction steps
Code
Live example
none
Screenshots
No response
Version
r162
Device
No response
Browser
No response
OS
No response
The text was updated successfully, but these errors were encountered: