Xavier
Xavier

Reputation: 9049

What is the precision of a uniform mat4's float values?

Are the floats 32 bits, since that is what I provide it, or are they the precision of a highp float?

Upvotes: 2

Views: 2056

Answers (1)

Darcy Rayner
Darcy Rayner

Reputation: 3445

If you absolutely need to use highp, specify it in the shader.

uniform highp mat4 m;

You can also test for what precisions are available with glGetShaderPrecisionFormat. As for what is being used be default, it varies between different hardware and even different shader stages.

Upvotes: 2

Related Questions