Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8958871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:18:58+00:00 2026-06-15T15:18:58+00:00

In the learningwebgl tutorial1 I’ve found an interesting line in the fragment shader. precision

  • 0

In the learningwebgl tutorial1 I’ve found an interesting line in the fragment shader.

precision mediump float;

I’ve found an article about it here, but I still can’t understand what does it mean?

And if I remove this line, nothing changes. Everything is the same.
So what does precision mediump float mean?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T15:18:59+00:00Added an answer on June 15, 2026 at 3:18 pm

    This determines how much precision the GPU uses when calculating floats. highp is high precision, and of course more intensive than mediump (medium precision) and lowp (low precision).

    Some systems do not support highp at all, which will cause code not to work at all on those systems.

    On systems that DO support highp, you will see a performance hit, and should use mediump and lowp wherever possible. A good rule of thumb that I saw was:

    • highp for vertex positions,
    • mediump for texture coordinates,
    • lowp for colors.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I red this tutorial about object colors: http://learningwebgl.com/blog/?p=134 This code will create a red
I declare my GLSL ES shader program within a HTML file, using this code:
I'm learning WebGL from this site: http://learningwebgl.com/blog/?p=370 I don't understand, what are VertexIndices, and
UPDATE : I got my O3D situation straightened out, but I have yet to
I'm trying to achieve this: http://learningwebgl.com/blog/?p=1786 with Three.js. I have no idea where to
I've read the learning webgl tutorial, but it does not explain everything. Something like
Okay, So I have been all over the net trying to find ways to
Finally, I decided to make my own WebGL 3D engine from the ground up,
Without any code at first let me describe the problem. I recreated the basic
I'm learning WebGL and am on this tutorial that has to do with lighting.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.