Skip to content

Commit

Permalink
Merge pull request #12991 from Popov72/webgpu-fix-geomrenderer
Browse files Browse the repository at this point in the history
WebGPU: Fix geometry buffer renderer in WebGPU
Former-commit-id: 85a344ae13de73b1aeead9dbf1a9602efee9ce2e
  • Loading branch information
sebavan authored Sep 19, 2022
2 parents f7b619e + d77f354 commit a072a60
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions packages/dev/core/src/Shaders/geometry.fragment.fx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,26 @@ uniform vec2 vTangentSpaceParams;
#endif

#if defined(REFLECTIVITY)
varying vec2 vReflectivityUV;
varying vec2 vAlbedoUV;
uniform sampler2D reflectivitySampler;
uniform sampler2D albedoSampler;
uniform vec3 reflectivityColor;
uniform vec3 albedoColor;
uniform float metallic;
uniform float glossiness;
#if defined(ORMTEXTURE) || defined(SPECULARGLOSSINESSTEXTURE) || defined(REFLECTIVITYTEXTURE)
uniform sampler2D reflectivitySampler;
varying vec2 vReflectivityUV;
#endif
#ifdef ALBEDOTEXTURE
varying vec2 vAlbedoUV;
uniform sampler2D albedoSampler;
#endif
#ifdef REFLECTIVITYCOLOR
uniform vec3 reflectivityColor;
#endif
#ifdef ALBEDOCOLOR
uniform vec3 albedoColor;
#endif
#ifdef METALLIC
uniform float metallic;
#endif
#ifdef ROUGHNESS
uniform float glossiness;
#endif
#endif

#ifdef ALPHATEST
Expand Down

0 comments on commit a072a60

Please sign in to comment.