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 7171177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:21:44+00:00 2026-05-28T15:21:44+00:00

I just wanted to do how this works. So I am in the vert

  • 0
  1. I just wanted to do how this works. So I am in the vert shader. I store a UV-coord from va1 to v1. In the frag shader, an interpolated texture coordinate now is available in v1 to sample. Are there connections under the hood, like semantics, to associate v1 with being the normal coordinates?

  2. Are fragments pushed to the fragment shader per triangle or once an entire mesh’s geometry vertices are run through?

  3. In the vertex shader, let’s say I multiply my modelview by my vertex’s position. I then want to share my z-coord with the fragment shader for something else. I store the z-cord of the transformed vector into v3. Once I am in the fragment shader and I access v3 for the z-coord, is this the same z-coord I passed in or is this z-coordinate going to be altered by the perspective divide in between? I only ask as I want to clarify the “interpolating” behavior described when storing values in these registers.

  • 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-05-28T15:21:45+00:00Added an answer on May 28, 2026 at 3:21 pm
    1. There are no semantics with the varying registers. Anything that you pass to a varying register will be interpolated, and it works the same for normals as it does for uvs or anything else.

    2. I believe that the entire mesh is transformed via the vertex shader first, then the fragment shader runs on it. It shouldn’t really matter how the hardware handles this though.

    3. The coordinate will be interpolated; the varying registers don’t know what kind of data they hold – from their perspective it’s just 4 floating point numbers. Since the varying registers hold 4 components, you could just stick the entire vertex position in there. One thing to note – if you’re wanting to do something dealing with depth, I think you’d want the w component.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This works -- it does compile -- but I just wanted to check if
So I just wanted to ask why this works : let internal X th
I just wanted to confirm if this was true or not - I remember
i just wanted to put a selection on my picturebox.image but this has just
I just wanted to know if I can point to class using this implementation:
I have this class file call SMSHelper.cs First I just wanted to know is
I just wanted to confirm the difference here, take this as an example: class
I came across this term - Quine (also called self-reproducing programs). Just wanted to
This is going to be a quick discussion, but I just wanted some feedback
This sounds funny..just a little experiment. i wanted to simulate a drag drop of

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.