Aras Pranckevičius
Aras Pranckevičius
So your DDS file is a two-channel format ("ATI2" aka BC5), i.e. the file only contains X & Y components of the normal map, and whatever uses the texture is...
> But what should it do with a 2-channel image? Currently, it drops the second and outputs the first as a grayscale JPEG. Perhaps what I was thinking at the...
I think both of these changes make a lot of sense. And yes, taking a ATI2/BC5 normal map (which is already lossy compression) and converting that into a JPG (which...
It's a good feature request, but not implemented right now. I would like to do it at some point if I had too much spare time... alas... :/
I could try fixing that, but I'd need a shader that reproduces the issue.
It would be really useful to get the actual source shader that results in this. Then I could fix it properly, instead of you adding workarounds for a glsl optimizer...
Do you have a shader that reproduces the bug?
The "builtincompiler" is _not_ the GLSL optimizer. It's just an executable for building some of the intermediate representations of the built-in functions.
Right now you'd need to write it yourself, I think.
Indeed, it very well might be that there's some part that is not thread safe somewhere. Did not have time to dig in & find it though.