summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorPtolemy <ptolemy@lindenlab.com>2022-06-28 14:05:16 -0700
committerPtolemy <ptolemy@lindenlab.com>2022-06-28 14:05:16 -0700
commit9f75a535ad22e1a87a607b797db0c416be7236ec (patch)
tree0ac6ff6cbc8eefffe95689558c98a6d209295a16 /indra/newview/app_settings/shaders
parent254bbc86e5d1d3ec094779f46619c109d027da18 (diff)
SL-17274: PBR: Add Emissive
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
index 295cf5f743..aa146b4bcc 100644
--- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl
@@ -32,6 +32,7 @@
#define DEBUG_PBR_RAW_SPEC 0 // Output: use spec in G-Buffer
#define DEBUG_PBR_IRRADIANCE 0 // Output: Diffuse Irradiance
#define DEBUG_PBR_DIFFUSE 0 // Output: Radiance Lambertian
+#define DEBUG_PBR_EMISSIVE 0 // Output: Emissive
#define DEBUG_PBR_ORM 0 // Output: Packed Occlusion Roughness Metal
#define DEBUG_PBR_OCCLUSION 0 // Output: Occlusion map
#define DEBUG_PBR_ROUGH_PERCEPTUAL 0 // Output: grayscale Perceptual Roughenss
@@ -203,7 +204,7 @@ void main()
if (hasPBR)
{
vec3 colorDiffuse = vec3(0);
- vec3 colorEmissive = vec3(0);
+ vec3 colorEmissive = texture2DRect(emissiveRect, tc).rgb;
vec3 colorSpec = vec3(0);
// vec3 colorClearCoat = vec3(0);
// vec3 colorSheen = vec3(0);