mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 15:29:30 -07:00
More tweaks to the volumetric mode debug view.
This commit is contained in:
@@ -79,7 +79,11 @@ void main() {
|
|||||||
float alpha = clamp(sigDist/fwidth(sigDist) + 0.5, 0.0, 1.0);
|
float alpha = clamp(sigDist/fwidth(sigDist) + 0.5, 0.0, 1.0);
|
||||||
|
|
||||||
if (showComputationTexture) {
|
if (showComputationTexture) {
|
||||||
gl_FragColor = vec4(glyph.r - alpha, glyph.g * alpha, glyph.a - alpha, 1.0);
|
vec4 debugColor = vec4(glyph.r - alpha, glyph.g * alpha, glyph.a - alpha, 1.0);
|
||||||
|
if (volumetric) {
|
||||||
|
debugColor.g = debugColor.g * 0.9 + 0.1;
|
||||||
|
}
|
||||||
|
gl_FragColor = debugColor;
|
||||||
} else {
|
} else {
|
||||||
gl_FragColor = vec4(vChannel * brightness * alpha, 1.0);
|
gl_FragColor = vec4(vChannel * brightness * alpha, 1.0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -425,6 +425,9 @@ fn getSymbolUV(glyphCycle : f32) -> vec2<f32> {
|
|||||||
|
|
||||||
if (bool(config.showComputationTexture)) {
|
if (bool(config.showComputationTexture)) {
|
||||||
output.color = vec4<f32>(glyph.r - alpha, glyph.g * alpha, glyph.a - alpha, 1.0);
|
output.color = vec4<f32>(glyph.r - alpha, glyph.g * alpha, glyph.a - alpha, 1.0);
|
||||||
|
if (volumetric) {
|
||||||
|
output.color.g = output.color.g * 0.9 + 0.1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
output.color = vec4<f32>(input.channel * brightness * alpha, 1.0);
|
output.color = vec4<f32>(input.channel * brightness * alpha, 1.0);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user