clang-format

This commit is contained in:
wheremyfoodat 2023-08-02 20:05:36 +03:00
parent 8f8f442f0f
commit 2c4473bb6e

View file

@ -230,16 +230,16 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) {
vec3 half_vector;
// Positional Light
if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 0, 1) == 0) {
// Positional Light
if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 0, 1) == 0) {
error_unimpl = true;
//half_vector = normalize(normalize(light_vector + v_view) + view);
}
// Directional light
else {
half_vector = normalize(normalize(light_vector) + view);
}
// half_vector = normalize(normalize(light_vector + v_view) + view);
}
// Directional light
else {
half_vector = normalize(normalize(light_vector) + view);
}
for (int c = 0; c < 7; c++) {
if (bitfieldExtract(GPUREG_LIGHTING_CONFIG1, 16 + c, 1) == 0) {