Commit bf7377fa authored by MURRAY David's avatar MURRAY David

visu variance

parent bf743236
Pipeline #107249 skipped with stage
......@@ -165,7 +165,13 @@ main(void)
// vec3 radMeanSqr = ret_color.rgb * ret_color.rgb;
// vec3 radSqrMean = texture(rad_sqr_buffer, screen_coord).rgb;
// ret_color.rgb = radSqrMean - radMeanSqr;
ret_color.rgb = texture(variance_buffer, screen_coord).rgb;
vec3 rad = texture(output_buffer, screen_coord).rgb;
vec3 var = texture(variance_buffer, screen_coord).rgb;
var = sqrt(var);
var /= rad;
ret_color.rgb = vec3(length(var)) * 0.1;
// ret_color.rgb = getAvgVar(ivec2(gl_FragCoord.xy));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment