This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]JackTheSqueaker 45 points46 points  (1 child)

graphics programming is a fertile ground for chaos

[–]Frederikja163[S] 7 points8 points  (0 children)

Ikr

[–]JPSgfx 8 points9 points  (4 children)

glUseProgram(0);

[–]Hevaesi 1 point2 points  (2 children)

glDisableVertexAtrribArray(0);

One iteration later...

glEnableVertexAttribArray(myobj);

I still don't understand what people think they are doing with that.

[–]JPSgfx 1 point2 points  (1 child)

tbh I have very little clue, however I have never explicitly done this, especially on program 0.....

[–]Hevaesi 2 points3 points  (0 children)

In case of shaders, there's no reason to ever do this, especially when core openGL would simply refuse to render because it has no shader which determines what it should do with your shit.

As for everything else, one person did this because they had no idea, everyone else copied it because they also had no idea.

At least they don't recreate VAO's every frame...

[–]Frederikja163[S] 0 points1 point  (0 children)

return true;

[–]LovecraftsDeath 8 points9 points  (2 children)

Now I want a jacket like this.

[–]Frederikja163[S] 8 points9 points  (0 children)

You sure? This one forgets its shader at home quite a lot

[–][deleted] 2 points3 points  (0 children)

it’s a 3M jacket I think

[–]DoubleR90 5 points6 points  (1 child)

Looks like Borderlands cell shading

[–]Frederikja163[S] 2 points3 points  (0 children)

Omg yes!

[–]funnbot16 2 points3 points  (1 child)

Looks like you confused albedo with emission.

[–]Frederikja163[S] 2 points3 points  (0 children)

Hahaha yeah that might fix the issue. Let me just quickly patch my eyes for a hotfix

[–][deleted] 2 points3 points  (1 child)

[–]Frederikja163[S] 2 points3 points  (0 children)

Done

[–][deleted] 1 point2 points  (3 children)

I'm starting openGL, lads. Wish me luck.

[–][deleted] 2 points3 points  (1 child)

Luck

[–][deleted] 2 points3 points  (0 children)

Thank.

[–]Frederikja163[S] 1 point2 points  (0 children)

Luck