X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FShaders%2FShaders_PathtraceBase_fs.pxx;h=bf84c5a7ede72d769dbec81e068ff48b971cf163;hb=ba00aab7a0f30b2a77d3faa4191249b32a9e03b0;hpb=aaf8d6a98d5aa23513bbb7f0e8528764e1e0ebb4 diff --git a/src/Shaders/Shaders_PathtraceBase_fs.pxx b/src/Shaders/Shaders_PathtraceBase_fs.pxx index f33cc5bb39..bf84c5a7ed 100644 --- a/src/Shaders/Shaders_PathtraceBase_fs.pxx +++ b/src/Shaders/Shaders_PathtraceBase_fs.pxx @@ -706,12 +706,15 @@ static const char Shaders_PathtraceBase_fs[] = " {\n" " if (theDepth + uSphereMapForBack == 0) // view ray and map is hidden\n" " {\n" - " aTotalRadiance = pow (BackgroundColor().rgb, vec3 (2.f));\n" + " aTotalRadiance = BackgroundColor().rgb;\n" " }\n" " else\n" " {\n" - " aTotalRadiance = pow (FetchEnvironment (Latlong (theRay.Direct)).rgb, vec3 (2.f));\n" + " aTotalRadiance = FetchEnvironment (Latlong (theRay.Direct)).rgb;\n" " }\n" + " #ifdef THE_SHIFT_sRGB\n" + " aTotalRadiance = pow (aTotalRadiance, vec3 (2.f));\n" + " #endif\n" " }\n" " \n" " return aTotalRadiance;\n"