|
|
|
|
|
by tsylba
501 days ago
|
|
It's funny because I rarely seen this (wrong approach) done anywhere else but I pick it up by myself (like a lot did I presume) and still am the first to do it everytime I see the occasion, not so for optimizations (while I admit I thought it wouldn't hurt) but for the flow and natural look of it. It feels somehow more right to me to compose effect by signals interpolations rather than clear ternary branch instructions. Now I'll have to change my ways in fear of being rejected socially for this newly approved bad practice. At least in WebGPU's WGSL we have the `select` instruction that does that ternary operation hidden as a method, so there is that. |
|