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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T23:27:33+00:00 2026-05-11T23:27:33+00:00

Shaders can have lots of different uniform names + attributes. How can I make

  • 0

Shaders can have lots of different uniform names + attributes. How can I make a system which works in general case so that I do not have to know each shader uniform’s name beforehand and hardcode it to code to get its location. I use OpenGL.

  • 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-11T23:27:33+00:00Added an answer on May 11, 2026 at 11:27 pm

    Unfortunately, at some point, you’ll need to know what the uniform names in the shader are, and what they refer to… there’s just no way around that.

    Most graphics/game engines work by convention – certain uniforms are set by the engine, and shaders use them as needed. Some will add configuration, so each shader can specify what uniforms it requires, but typically, the names are still done by convention.

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

Sidebar

Related Questions

It seems I can't have my GLSL shaders compiled. Once in a while (mainly
I have a project that uses GLSL shaders. This project is designed not to
I have to send vertex attributes using glVertexAttribPointer to shaders expecting them as built-in
I currently have two shaders, a processing shader (both vertex and pixel) - which
I am trying to add shaders with GLFW/GLEW. I am getting an error that
I'm working with OpenGL shaders, which prefer C strings to NSStrings, and I've run
What are Vertex and Pixel shaders? What is the difference between them? Which one
I read about OpenGL and about nvidia-cg-toolkit and other shaders, all contains lots of
With shader model 2.0, you can have 256 constant registers. I have been looking
I have a number of shaders in my games and apps, I currently use

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.