Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Load models section needs vertex colors#26

Merged
Overv merged 1 commit intoOverv:masterfrom
PeterShinners:master
Oct 14, 2016
Merged

Load models section needs vertex colors#26
Overv merged 1 commit intoOverv:masterfrom
PeterShinners:master

Conversation

@PeterShinners
Copy link
Copy Markdown
Contributor

When running the given examples I had an all black screen.
I realized the shader was still multiplying the texture and vertex
colors. This sets each color to white as they are loaded from the obj.

An alternative solution would be to modify the fragment shader,
but felt it was better to provide proper Vertex attributes.

When running the given examples I had an all black screen.
I realized the shader was still multiplying the texture and vertex
colors.

An alternative solution would be to modify the fragment shader,
but felt it was better to provide proper Vertex attributes.
@Overv
Copy link
Copy Markdown
Owner

Overv commented Oct 14, 2016

Ah, I didn't really intend people to copy the final snippet of the texture mapping tutorial to their own shader code. This is a good solution, thanks.

@Overv Overv merged commit 09bfc66 into Overv:master Oct 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants