shader-compiler-bugs icon indicating copy to clipboard operation
shader-compiler-bugs copied to clipboard

Adding zero to vector causes black image to be rendered

Open afd opened this issue 8 years ago • 1 comments

[Shaders, screenshots, error log, reproduction steps, etc.] [ZIP]

WebGL links for easy reproduction:

Recipient:

recipient image

Variant:

variant image

The difference is that:

return ObjUnion(obj0(p), obj1(p));

is changed to:

return ObjUnion(obj0(p + vec3(0.0, injectionSwitch.x, 0.0)), obj1(p));

Since injectionSwitch.x is zero, this should have no (or very minimal) effect. The fact that it makes the image come out black suggests a bug.

afd avatar Dec 07 '16 15:12 afd

Reported to Intel here:

https://software.intel.com/en-us/forums/graphics-driver-bug-reporting/topic/704902

afd avatar Dec 07 '16 15:12 afd