mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 14:15:41 +12:00
Shadergen: Remove redundant whitespace generation
This commit is contained in:
parent
20335b7d2d
commit
eb7e02fbc2
1 changed files with 2 additions and 2 deletions
|
@ -162,7 +162,7 @@ std::string FragmentGenerator::generate(const PICARegs& regs, const FragmentConf
|
|||
void main() {
|
||||
vec4 combinerOutput = v_colour;
|
||||
vec4 previousBuffer = vec4(0.0);
|
||||
vec4 tevNextPreviousBuffer = tevBufferColor;
|
||||
vec4 tevNextPreviousBuffer = tevBufferColor;
|
||||
|
||||
vec4 primaryColor = vec4(0.0);
|
||||
vec4 secondaryColor = vec4(0.0);
|
||||
|
@ -494,7 +494,7 @@ void FragmentGenerator::compileLights(std::string& shader, const PICA::FragmentC
|
|||
light_distance = length(light_vector);
|
||||
light_vector = normalize(light_vector);
|
||||
half_vector = light_vector + normalize(v_view);
|
||||
|
||||
|
||||
distance_attenuation = 1.0;
|
||||
NdotL = dot(normal, light_vector);
|
||||
)";
|
||||
|
|
Loading…
Add table
Reference in a new issue