rendajs / Renda

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

screenSize view uniform should be an integer #921

Open jespertheend opened 4 months ago

jespertheend commented 4 months ago

Currently it's a vec4<f32> but since the screen size can't half pixels, an integer type would be more suitable here.

Although the z and w components of the vector are unused right now. We might want to provide something useful here. Unity stores 1.0 + 1.0/w here for instance. If we decide to do this, an integer type wouldn't work.