You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to also be able to have mat3 as vertex attributes which would require a VertexFormat::Mat3
I use the transpose of the inverse of a model matrix for correcting normal orientations per instance and it's nice to not have to compute it in the shader since it's a bit expensive and also without wasting space with a Mat4, and it would look nicer than my current setup:
To my understanding, it seems that it would only require changing in new_pipeline_with_params with an added case that sets attributes_len and attributes_count to 3 for a VertexFormat::Mat3.
Possibly also apply_uniforms_from_bytes If we're also adding a UniformType::Mat3 while we're at it.
Anything I'm missing about GL ES compatability or would that suffice and work?
The text was updated successfully, but these errors were encountered:
Heyope :)
It would be nice to also be able to have
mat3
as vertex attributes which would require aVertexFormat::Mat3
I use the transpose of the inverse of a model matrix for correcting normal orientations per instance and it's nice to not have to compute it in the shader since it's a bit expensive and also without wasting space with a
Mat4
, and it would look nicer than my current setup:with attributes and layout as so:
To my understanding, it seems that it would only require changing in
new_pipeline_with_params
with an added case that setsattributes_len
andattributes_count
to 3 for aVertexFormat::Mat3
.Possibly also
apply_uniforms_from_bytes
If we're also adding aUniformType::Mat3
while we're at it.Anything I'm missing about GL ES compatability or would that suffice and work?
The text was updated successfully, but these errors were encountered: