All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
47
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to Graphics and GPU Programming
CameraPosition in GLSL
Graphics and GPU Programming
Programming
Started by
crucifer
August 21, 2010 04:32 PM
1
comment, last by
GeirGrusom
13 years, 8 months ago
crucifer
130
Author
August 21, 2010 04:32 PM
I'm in a GLSL shader and I would like to have the camera position.
Preferably I would like not having to feed it through a variable.
Is it stored somewhere or is there a quick way to compute it ?
Cancel
Save
Advertisement
Kasya
207
August 21, 2010 04:40 PM
there are no other way of doing it other than uniforms especially if you use opengl 3.x or newer
Cancel
Save
GeirGrusom
134
August 23, 2010 02:25 AM
Camera position can be inferred from the viewport matrix.
Cancel
Save
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
New Generated Constructor & JIT Issue
AngelCode
Inheriting from application registered class
AngelCode
Advertisement
Recommended Tutorials
Finding your community
Archive
3D Backface Culling
Graphics and GPU Programming
Pitch Your Game: Pitching Tips from a Game Industry Catcher
Business and Law
General Purpose Call Stack Tracer
General and Gameplay Programming
Metanet Software
Interviews
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top