mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0030622: Visualization, TKOpenGl - Path Tracing fails on macOS
Fixed usage of non-existing function texture2D().
This commit is contained in:
parent
8693dfd0e8
commit
2a0522b1c6
@ -127,7 +127,7 @@ void main (void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
OutColor = mix (texture2D (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));
|
OutColor = mix (texture (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // ADAPTIVE_SAMPLING
|
#endif // ADAPTIVE_SAMPLING
|
||||||
|
@ -130,7 +130,7 @@ static const char Shaders_RaytraceRender_fs[] =
|
|||||||
" }\n"
|
" }\n"
|
||||||
" else\n"
|
" else\n"
|
||||||
" {\n"
|
" {\n"
|
||||||
" OutColor = mix (texture2D (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));\n"
|
" OutColor = mix (texture (uAccumTexture, vPixel), aColor, 1.f / (uAccumSamples + 1));\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
"\n"
|
"\n"
|
||||||
"#endif // ADAPTIVE_SAMPLING\n"
|
"#endif // ADAPTIVE_SAMPLING\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user