mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 15:29:30 -07:00
Migrated changes to WebGPU
This commit is contained in:
@@ -34,8 +34,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
|
||||
var bgColor = textureSampleLevel( backgroundTex, linearSampler, uv, 0.0 ).rgb;
|
||||
|
||||
// Combine the texture and bloom, then blow it out to reveal more of the image
|
||||
var brightness = getBrightness(uv).r;
|
||||
brightness = pow(brightness, 1.5);
|
||||
var brightness = getBrightness(uv);
|
||||
|
||||
textureStore(outputTex, coord, vec4<f32>(bgColor * brightness, 1.0));
|
||||
textureStore(outputTex, coord, vec4<f32>(bgColor * (brightness.r + brightness.g * 2.0), 1.0));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user