6071df5840
Effectively, only the last component of the select was considered, need to correctly early out if any case is hit.
15 lines
199 B
Plaintext
15 lines
199 B
Plaintext
#version 450
|
|
layout(local_size_x = 1) in;
|
|
|
|
layout(set = 0, binding = 0) buffer A
|
|
{
|
|
vec3 a;
|
|
vec3 b;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
bvec3 c = lessThan(b, vec3(1.0));
|
|
a = mix(vec3(1, 0, 0), vec3(0, 0, 1), c);
|
|
}
|