Skip to content

Simplify matrix declarations#9

Open
dhritzkiv wants to merge 2 commits into
masterfrom
minify-mats
Open

Simplify matrix declarations#9
dhritzkiv wants to merge 2 commits into
masterfrom
minify-mats

Conversation

@dhritzkiv

Copy link
Copy Markdown
Member

if diagonal elements are all the same, and the rest are zeros

e.g.

mat3 fullForm = mat3(
	1.0, 0.0, 0.0,
	0.0, 1.0, 0.0,
	0.0, 0.0, 1.0
);

mat3 shortForm = mat3(1.0);

fullForm == shortForm;

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.7%) to 99.275% when pulling 07f3ce1 on minify-mats into a284825 on master.

@coveralls

coveralls commented Jun 11, 2019

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 05291cf on minify-mats into a284825 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants