mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-08-02 22:28:52 +00:00
Remove pink positional lighting
This commit is contained in:
parent
03f0c612e3
commit
906286a97c
1 changed files with 4 additions and 4 deletions
|
@ -232,8 +232,8 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) {
|
||||||
|
|
||||||
// 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
|
||||||
|
@ -328,7 +328,7 @@ void calcLighting(out vec4 primary_color, out vec4 secondary_color) {
|
||||||
if (fresnel_output2 == 1u) secondary_color.a = d[FR_LUT];
|
if (fresnel_output2 == 1u) secondary_color.a = d[FR_LUT];
|
||||||
|
|
||||||
if (error_unimpl) {
|
if (error_unimpl) {
|
||||||
secondary_color = primary_color = vec4(1.0, 0., 1.0, 1.0);
|
//secondary_color = primary_color = vec4(1.0, 0., 1.0, 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,4 +414,4 @@ void main() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue