[Bug 95085] Invalid sampling of second texture in fragment shader that have two samplers with different parameters.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun Apr 24 00:40:30 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=95085
--- Comment #3 from Ilia Mirkin <imirkin at alum.mit.edu> ---
The actual shader, btw, appears to be:
#version 330 core
smooth in vec2 vTex2C;
smooth in vec4 vFiltColor;
flat in uint nModeOut;
out vec4 fragColor;
uniform sampler2D tNinepatch;
uniform sampler2D tFonttex;
void main() {
if (nModeOut == 0U) {
fragColor = textureLod(tNinepatch, vTex2C.xy, 0) * vFiltColor;
}
else {
float fIntensity = max(vFiltColor.r, max(vFiltColor.g,
vFiltColor.b)) * 0.6 + 1.4;
float fAlpha = pow(textureLod(tFonttex, vTex2C.xy, 0).r, 1.0 /
fIntensity);
fragColor = vec4(1.0, 1.0, 1.0, fAlpha) * vFiltColor;
}
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160424/401a7e8f/attachment.html>
More information about the intel-3d-bugs
mailing list