vertex-attributes Questions

0

This seems like a question which has been answered throughout time for one IHV or another but recently I have have been trying to come to a consensus about vertex layouts and the best practices for...
Decomposer asked 29/9, 2021 at 4:27

2

Solved

I can send color to shader as 4 floats - no problem. However I want to send it as integer (or unsigned integer, doesn't really matter, what matters is 32 bits) and be decomposed in vec4 on shader. ...
Layla asked 5/11, 2018 at 22:5

2

Solved

I was looking for ways to associate attributes with arbitrary groupings of verticies, at first instancing appeared to be the only way for me to accomplish this, but then I stumbled up this question...
Disproportionate asked 1/6, 2018 at 20:14

1

Solved

I've been learning Metal for iOS / OSX, and I began by following a Ray Wenderlich tutorial. This tutorial works fine but it makes no mention of MTLVertexAttributeDescriptors. Now that I'm developi...
Eufemiaeugen asked 31/10, 2017 at 21:17

1

Solved

I am looking for a nice way to render mesh objects with different vertex layouts wihtout large effort (e.g. defining a renderer class for each vertex layout). You can see some examples of different...
Mange asked 18/5, 2015 at 19:4

1

Solved

I'm attempting to calculate vertex normals for various game assets. The normals I calculate are used for "inflating" the model (to draw behind the real model producing a thick outline). I currentl...
Rockaway asked 2/8, 2014 at 22:55

1

Solved

What are the pros and cons for using strided vertex buffers vs tighly packed buffers for each attribute? What I mean is for instance: Stride: xyzrgb xyzrgb xyzrgb Tight: xyzxyzxyz rgbrgbrgb At f...
Sergias asked 15/7, 2013 at 17:37

2

Can anybody tell me how exactly do we use GL_INT_2_10_10_10_REV as type parameter in glVertexAttribPointer() ? I am trying to pass color values using this type. Also what is the significance of "RE...
Renaud asked 26/12, 2012 at 6:42

1

Solved

I was having extreme trouble getting a vertex shader of mine to run under OpenGL 3.3 core on an ATI driver: #version 150 uniform mat4 graph_matrix, view_matrix, proj_matrix; uniform bool align_or...
Duala asked 12/11, 2012 at 17:57

1

Solved

I had some 3D code that I noticed wouldn't render in a strict core profile but fine in a "normal" (not explicitly requested-as-core-only) profile context. To isolate the issue, I have written the s...
Dubbing asked 25/10, 2012 at 5:29

2

Solved

I was wondering if there was a way to tell if a vertex attribute is enabled from within a vertex shader? I know that if the vertex attribute is disabled all the values will be treated as 0.0, so I ...
Impala asked 22/2, 2012 at 20:31
1

© 2022 - 2024 — McMap. All rights reserved.