CR feedback

This commit is contained in:
ZappoMan 2015-07-23 14:56:52 -07:00
parent 1177ffd439
commit e6262de864
4 changed files with 6 additions and 6 deletions

View file

@ -21,6 +21,9 @@ float evalOpaqueFinalAlpha(float alpha, float mapAlpha) {
return mix(alpha * glowIntensity, 1.0 - alpha * glowIntensity, step(mapAlpha, alphaThreshold));
}
const DEFAULT_SPECULAR = vec3(0.1);
const DEFAULT_SHININESS = 10;
void packDeferredFragment(vec3 normal, float alpha, vec3 diffuse, vec3 specular, float shininess) {
if (alpha != glowIntensity) {
discard;

View file

@ -22,6 +22,5 @@ void main(void) {
normalize(interpolatedNormal.xyz),
glowIntensity,
gl_Color.rgb,
vec3(0.1),
10);
DEFAULT_SPECULAR, DEFAULT_SHININESS);
}

View file

@ -27,6 +27,5 @@ void main(void) {
normalize(interpolatedNormal.xyz),
glowIntensity * texel.a,
gl_Color.rgb * texel.rgb,
vec3(0.1),
10);
DEFAULT_SPECULAR, DEFAULT_SHININESS);
}

View file

@ -27,7 +27,6 @@ void main(void) {
normalize(interpolatedNormal.xyz),
glowIntensity * texel.a,
gl_Color.rgb,
vec3(0.1),
10,
DEFAULT_SPECULAR, DEFAULT_SHININESS,
texel.rgb);
}