Skip to content

Commit 2c8b022

Browse files
authored
Fix specular color not in linear space
1 parent 8268143 commit 2c8b022

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)