Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 39360

OpenGL is a graphics standard and API which targets the desktop and workstation markets. It is designed to be easy to accelerate with dedicated computer hardware, and hence most implementations give greatly improved performance over traditional software rendering. Currently, OpenGL is used for applications like CAD software and computer games. It is also cross-platform. The OpenGL standard is controlled by the Khronos group, which also controls OpenGL ES.

2 votes

How do I efficiently use 16 bit texture coordinates?

the easy option to integrate is to store 2 texture coordinates into one float using the int part and the decimal part: //c++ code: float packCoord(const vec2 & tc) { return floorf(tc.x * 10 …
Raxvan's user avatar
  • 819
0 votes
Accepted

Models are not rendered correctly. OpenGL

Changing mProjection * mView * mModel to mModel * mView * mProjection should solve the problem in this case but it's not a general rule. Here is why: Some math facts first, for matrix multiplication …
Raxvan's user avatar
  • 819
0 votes

How do I calculate NDC coordinates in a fragment shader?

move the projection multiplication in the vertex shader: vec4 view_pos = P * V * M * vec4(world_position.xyz, 1.0); and in fragment shader: vec4 clip_pos = view_pos; vec2 ndc_xy = clip_pos.xy / cl …
Raxvan's user avatar
  • 819
2 votes

Providing texture coordinates and using indexed drawing at the same time

There is not ideal way of doing it, this is a common problem with meshes. To solve this there, are two different approaches: Considering that you have a vertex that has to be used with two different t …
Raxvan's user avatar
  • 819