Skip to content

Commit f58f780

Browse files
authored
Merge pull request #13593 from BabylonJS/Popov72-patch-2
Geometry Buffer Renderer: Fix specular color not in linear space
2 parents c929c4a + 2c8b022 commit f58f780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/dev/core/src/Shaders/geometry.fragment.fx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void main() {
164164
#endif
165165
#else
166166
#ifdef REFLECTIVITYCOLOR
167-
reflectivity.rgb = reflectivityColor.xyz;
167+
reflectivity.rgb = toLinearSpace(reflectivityColor.xyz);
168168
reflectivity.a = 1.0;
169169
// #else
170170
// We never reach this case since even if the reflectivity color is not defined

0 commit comments

Comments
 (0)