diff options
author | Ptolemy <ptolemy@lindenlab.com> | 2022-06-24 15:37:42 -0700 |
---|---|---|
committer | Ptolemy <ptolemy@lindenlab.com> | 2022-06-24 15:37:42 -0700 |
commit | a5891e3d5b4da847c8dc677e37883341caace613 (patch) | |
tree | 320414fe39dedb28855d0b45608401546925dd83 /indra/newview/app_settings | |
parent | 11a67c57b8816c1a1141313301721fd4e0998b17 (diff) |
SL-17274: PBR: Add DEBUG_NORMAL_RAW, DEBUG_NORMAL_OUT to PBR shader
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl index 5538b445fa..8cbb62b301 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/pbropaqueF.glsl @@ -27,7 +27,8 @@ #define DEBUG_BASIC 0 #define DEBUG_VERTEX 0 -#define DEBUG_NORMAL 0 +#define DEBUG_NORMAL_RAW 0 // Output packed normal map "as is" to diffuse +#dfeine DEBUG_NORMAL_OUT 0 // Output unpacked normal to diffuse #define DEBUG_POSITION 0 uniform sampler2D diffuseMap; //always in sRGB space @@ -126,7 +127,10 @@ void main() #if DEBUG_VERTEX col.rgb = vertex_color.rgb; #endif -#if DEBUG_NORMAL +#if DEBUG_NORMAL_RAW + col.rgb = texture2D(bumpMap, vary_texcoord1.xy).rgb; +#endif +#if DEBUG_NORMAL_OUT col.rgb = vary_normal; #endif #if DEBUG_POSITION |