Browse Source

Add explicit vReflectionColor parameter (was implicit before)

Popov72 5 years ago
parent
commit
5f7e7ab874

+ 1 - 0
src/Shaders/ShadersInclude/pbrBlockClearcoat.fx

@@ -68,6 +68,7 @@ struct clearcoatOutParams
     #endif
     #ifdef REFLECTION
         const in vec3 vReflectionMicrosurfaceInfos,
+        const in vec3 vReflectionColor,
         const in vec4 vLightingIntensity,
         #ifdef REFLECTIONMAP_3D
             const in samplerCube reflectionSampler,

+ 3 - 0
src/Shaders/ShadersInclude/pbrBlockReflection.fx

@@ -56,6 +56,7 @@
         const in float alphaG,
         const in vec3 vReflectionMicrosurfaceInfos,
         const in vec2 vReflectionInfos,
+        const in vec3 vReflectionColor,
     #if defined(LODINREFLECTIONALPHA) && !defined(REFLECTIONMAP_SKYBOX)
         const in float NdotVUnclamped,
     #endif
@@ -151,6 +152,7 @@
         const in float alphaG,
         const in vec3 vReflectionMicrosurfaceInfos,
         const in vec2 vReflectionInfos,
+        const in vec3 vReflectionColor,
     #ifdef ANISOTROPIC
         const in anisotropicOutParams anisotropicOut,
     #endif
@@ -214,6 +216,7 @@
             alphaG,
             vReflectionMicrosurfaceInfos,
             vReflectionInfos,
+            vReflectionColor,
         #if defined(LODINREFLECTIONALPHA) && !defined(REFLECTIONMAP_SKYBOX)
             NdotVUnclamped,
         #endif

+ 1 - 0
src/Shaders/ShadersInclude/pbrBlockSheen.fx

@@ -132,6 +132,7 @@
                 sheenAlphaG,
                 vReflectionMicrosurfaceInfos,
                 vReflectionInfos,
+                vReflectionColor,
             #if defined(LODINREFLECTIONALPHA) && !defined(REFLECTIONMAP_SKYBOX)
                 NdotVUnclamped,
             #endif

+ 2 - 0
src/Shaders/pbr.fragment.fx

@@ -219,6 +219,7 @@ void main(void) {
             alphaG,
             vReflectionMicrosurfaceInfos,
             vReflectionInfos,
+            vReflectionColor,
         #ifdef ANISOTROPIC
             anisotropicOut,
         #endif
@@ -348,6 +349,7 @@ void main(void) {
         #endif
         #ifdef REFLECTION
             vReflectionMicrosurfaceInfos,
+            vReflectionColor,
             vLightingIntensity,
             reflectionSampler,
             #ifndef LODBASEDMICROSFURACE