Shadergen: Fix small register decoding oopsie

This commit is contained in:
wheremyfoodat 2024-07-19 03:01:12 +03:00
parent 25098082c7
commit ac55c3e324
3 changed files with 4 additions and 3 deletions

View file

@ -485,9 +485,9 @@ void FragmentGenerator::compileLights(std::string& shader, const PICA::FragmentC
shader += "light_position = lightSources[" + std::to_string(lightID) + "].position;\n";
if (lightConfig.directional) { // Directional lighting
shader += "light_vector = light_position + v_view;\n";
} else { // Positional lighting
shader += "light_vector = light_position;\n";
} else { // Positional lighting
shader += "light_vector = light_position + v_view;\n";
}
shader += R"(