OpenCL
Posted: Thu Oct 11, 2018 9:17 pm
Some questions:
- I have fixed what I believe was a copy-paste mistake in the subtract texture:
https://github.com/LuxCoreRender/LuxCor ... 396ea99f28
I noticed that the subtract and add textures are declared OPENCL_FORCE_INLINE, while the scale texture is declared OPENCL_FORCE_NOT_INLINE. Why is that? Aren't they all doing the same thing, just with different operators? Is there something I'm not seeing? - It seems like the OpenCL code clamps some colors implicitly, for example the matte material "kd". This creates a difference between CPU renders and OpenCL renders because this clamping does not happen in C++ code. See attached example image. Why the inconsistency?