Showing the changes to libraries/render-utils/src/DebugDeferredBuffer.cpp (1 of 35 files). Show all
Unified · Split
| @@ -85,6 +85,13 @@ static const std::string DEFAULT_NORMAL_SHADER { · 84 unmodified lines | ||
| 85 | 85 | " }" |
| 86 | 86 | }; |
| 87 | 87 | |
| 88 | +static const std::string DEFAULT_OCCLUSION_SHADER{ | |
| 89 | + "vec4 getFragmentColor() {" | |
| 90 | + " DeferredFragment frag = unpackDeferredFragmentNoPosition(uv);" | |
| 91 | + " return vec4(vec3(frag.obscurance), 1.0);" | |
| 92 | + " }" | |
| 93 | +}; | |
| 94 | + | |
| 88 | 95 | static const std::string DEFAULT_EMISSIVE_SHADER{ |
| 89 | 96 | "vec4 getFragmentColor() {" |
| 90 | 97 | " DeferredFragment frag = unpackDeferredFragmentNoPosition(uv);" |
| @@ -184,6 +191,8 @@ std::string DebugDeferredBuffer::getShaderSourceCode(Mode mode, std::string cust · 93 unmodified lines | ||
| 184 | 191 | return DEFAULT_DEPTH_SHADER; |
| 185 | 192 | case EmissiveMode: |
| 186 | 193 | return DEFAULT_EMISSIVE_SHADER; |
| 194 | + case OcclusionMode: | |
| 195 | + return DEFAULT_OCCLUSION_SHADER; | |
| 187 | 196 | case LightmapMode: |
| 188 | 197 | return DEFAULT_LIGHTMAP_SHADER; |
| 189 | 198 | case LightingMode: |