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