mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 07:35:41 +12:00
clang-format
This commit is contained in:
parent
8f8f442f0f
commit
2c4473bb6e
1 changed files with 9 additions and 9 deletions
|
@ -230,16 +230,16 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) {
|
||||||
|
|
||||||
vec3 half_vector;
|
vec3 half_vector;
|
||||||
|
|
||||||
// Positional Light
|
// Positional Light
|
||||||
if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 0, 1) == 0) {
|
if (bitfieldExtract(GPUREG_LIGHTi_CONFIG, 0, 1) == 0) {
|
||||||
error_unimpl = true;
|
error_unimpl = true;
|
||||||
//half_vector = normalize(normalize(light_vector + v_view) + view);
|
// half_vector = normalize(normalize(light_vector + v_view) + view);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Directional light
|
// Directional light
|
||||||
else {
|
else {
|
||||||
half_vector = normalize(normalize(light_vector) + view);
|
half_vector = normalize(normalize(light_vector) + view);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int c = 0; c < 7; c++) {
|
for (int c = 0; c < 7; c++) {
|
||||||
if (bitfieldExtract(GPUREG_LIGHTING_CONFIG1, 16 + c, 1) == 0) {
|
if (bitfieldExtract(GPUREG_LIGHTING_CONFIG1, 16 + c, 1) == 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue