mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 06:13:45 -07:00
Added missing whitespaces on ifs
This commit is contained in:
parent
d95cdbf8be
commit
ce0c0e5173
2 changed files with 2 additions and 2 deletions
|
@ -308,7 +308,7 @@ void gfx_direct3d_common_build_shader(char buf[4096], size_t& len, size_t& num_f
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cc_features.opt_grayscale) {
|
if (cc_features.opt_grayscale) {
|
||||||
append_line(buf, &len, "float intensity = (texel.r + texel.g + texel.b) / 3.0;");
|
append_line(buf, &len, "float intensity = (texel.r + texel.g + texel.b) / 3.0;");
|
||||||
append_line(buf, &len, "texel.rgb = input.grayscale.rgb * intensity;");
|
append_line(buf, &len, "texel.rgb = input.grayscale.rgb * intensity;");
|
||||||
}
|
}
|
||||||
|
|
|
@ -368,7 +368,7 @@ static struct ShaderProgram* gfx_opengl_create_and_load_new_shader(uint64_t shad
|
||||||
append_line(fs_buf, &fs_len, "texel.a *= floor(clamp(random(vec3(floor(gl_FragCoord.xy * noise_scale), float(frame_count))) + texel.a, 0.0, 1.0));");
|
append_line(fs_buf, &fs_len, "texel.a *= floor(clamp(random(vec3(floor(gl_FragCoord.xy * noise_scale), float(frame_count))) + texel.a, 0.0, 1.0));");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cc_features.opt_grayscale) {
|
if (cc_features.opt_grayscale) {
|
||||||
append_line(fs_buf, &fs_len, "float intensity = (texel.r + texel.g + texel.b) / 3.0;");
|
append_line(fs_buf, &fs_len, "float intensity = (texel.r + texel.g + texel.b) / 3.0;");
|
||||||
append_line(fs_buf, &fs_len, "texel.rgb = vGrayscaleColor.rgb * intensity;");
|
append_line(fs_buf, &fs_len, "texel.rgb = vGrayscaleColor.rgb * intensity;");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue