Closed kvark closed 2 years ago
Shader code:
[[stage(fragment)]] fn color_fs(in: Varyings, [[builtin(front_facing)]] is_front: bool) -> [[location(0)]] vec4<f32> { return vec4<f32>(select(1.0, -1.0, is_front), select(1.0, -1.0, !is_front), 0.0, 1.0); }
Explanation: regardless of whether is_front is true or false, one of the components of the resulting vector should end up being 1.0.
is_front
Looks to be fixed now. Not sure what exactly was going on :/
This is still an issue:
Anything related to is_front results in zeroes :(
Shader code:
Explanation: regardless of whether
is_front
is true or false, one of the components of the resulting vector should end up being 1.0.