mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
CR feedback
This commit is contained in:
parent
1177ffd439
commit
e6262de864
4 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -22,6 +22,5 @@ void main(void) {
|
|||
normalize(interpolatedNormal.xyz),
|
||||
glowIntensity,
|
||||
gl_Color.rgb,
|
||||
vec3(0.1),
|
||||
10);
|
||||
DEFAULT_SPECULAR, DEFAULT_SHININESS);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
||||
}
|
Loading…
Reference in a new issue