rendajs / Renda

A modern rendering engine for the web.
https://rendajs.org
MIT License
10 stars 4 forks source link

vec4.w should not be 1 by default #922

Open jespertheend opened 4 months ago

jespertheend commented 4 months ago

I'm not sure what is more common, Vec4's with their w set to 0 or to 1. But either way, when you're expecting 0 as the default, you'll likely forget to double check, and when you expect 1 to be the default, you'll likely still double check just in case.

So unless 1 really is way more common, I think a default of 0 probably makes a lot more sense.