mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:17:58 +02:00
Fixed Entity Shader emmissive
Makes sure that the emissiveAmount information is used correctly for a custom shader, instead of using specular rgb information to generate the emissiveness, which was incorrect
This commit is contained in:
parent
0a213e24c4
commit
19a290be70
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ void main(void) {
|
||||||
max(0, 1.0 - shininess / 128.0),
|
max(0, 1.0 - shininess / 128.0),
|
||||||
DEFAULT_METALLIC,
|
DEFAULT_METALLIC,
|
||||||
specular,
|
specular,
|
||||||
specular);
|
vec3(clamp(emissiveAmount, 0.0, 1.0)));
|
||||||
} else {
|
} else {
|
||||||
packDeferredFragment(
|
packDeferredFragment(
|
||||||
normal,
|
normal,
|
||||||
|
|
Loading…
Reference in a new issue