Changing line 196’s “i” to float3 instead of int3 gets it to compile successfully, but it appears to only be applying color information to the detected edges(?):
Maybe if you round the return of fmod it would work, like this:
float3 i = round(remapFrom01(info.xyz, float3(0.0f), float3(15.0f)));
edr.w = bool(round(fmod(i.x, 2.0f))); i.x = i.x/2.0f;
edr.z = bool(round(fmod(i.x, 2.0f))); i.x = i.x/2.0f;
edr.y = bool(round(fmod(i.x, 2.0f))); i.x = i.x/2.0f;
edr.x = bool(round(fmod(i.x, 2.0f)));
No improvement with rounding.
It’s worth noting, though, that the lvl1 version worked fine on my Radeon card last night and didn’t have any of these problems, so it’s likely an Intel-specific driver/IGP issue. I’ll test the lvl2 version on the Radeon this evening.
Do another test, please.
Instead this line:
float4 info = tex2D(decal, co.orig_tex);
Use this:
float4 info = tex2D(decal, co.texCoord);
Same result
Perhaps something is amiss with my cgp. I’ll try to work on it a bit and see if anything helps.
Using float instead of int doesn’t work! I can confirm!