mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 04:06:41 +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));
|
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) {
|
void packDeferredFragment(vec3 normal, float alpha, vec3 diffuse, vec3 specular, float shininess) {
|
||||||
if (alpha != glowIntensity) {
|
if (alpha != glowIntensity) {
|
||||||
discard;
|
discard;
|
||||||
|
|
|
@ -22,6 +22,5 @@ void main(void) {
|
||||||
normalize(interpolatedNormal.xyz),
|
normalize(interpolatedNormal.xyz),
|
||||||
glowIntensity,
|
glowIntensity,
|
||||||
gl_Color.rgb,
|
gl_Color.rgb,
|
||||||
vec3(0.1),
|
DEFAULT_SPECULAR, DEFAULT_SHININESS);
|
||||||
10);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,5 @@ void main(void) {
|
||||||
normalize(interpolatedNormal.xyz),
|
normalize(interpolatedNormal.xyz),
|
||||||
glowIntensity * texel.a,
|
glowIntensity * texel.a,
|
||||||
gl_Color.rgb * texel.rgb,
|
gl_Color.rgb * texel.rgb,
|
||||||
vec3(0.1),
|
DEFAULT_SPECULAR, DEFAULT_SHININESS);
|
||||||
10);
|
|
||||||
}
|
}
|
|
@ -27,7 +27,6 @@ void main(void) {
|
||||||
normalize(interpolatedNormal.xyz),
|
normalize(interpolatedNormal.xyz),
|
||||||
glowIntensity * texel.a,
|
glowIntensity * texel.a,
|
||||||
gl_Color.rgb,
|
gl_Color.rgb,
|
||||||
vec3(0.1),
|
DEFAULT_SPECULAR, DEFAULT_SHININESS,
|
||||||
10,
|
|
||||||
texel.rgb);
|
texel.rgb);
|
||||||
}
|
}
|
Loading…
Reference in a new issue