Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running Tut07 WorldScene #142

Open
JarodStreck opened this issue Mar 29, 2022 · 2 comments
Open

Error running Tut07 WorldScene #142

JarodStreck opened this issue Mar 29, 2022 · 2 comments

Comments

@JarodStreck
Copy link

I successfully build but can't run the Tut07 Worldscene program. I have the following error :

The ♦ shader uses varying theColor, but previous shader does not write to it.
Out of resource error.

There is no "theColor" variable in any shader.
I didn't edit a single line in those files and also tried with a fresh clone and still didn't work.
All first 6 tut worked fine.

Also i'm running it in Clion 2021

@JarodStreck
Copy link
Author

Additionnal info :

OS : Win 10
GPU : Intel graphics UHD
CPU : I7-10Gen

@PepeVoid
Copy link

PepeVoid commented Apr 30, 2024

The issue is that the vertex shader PosColorWorldTransform.vert passes to the fragment shaders ColorPassthrough.frag and ColorMultUniform.frag a smooth variable called "interpColor", but this should be named "theColor" because both frag shaders expect this variable name (smooth variables passed from vertex shaders to fragment shaders should have identical names in both vertex and fragment shader for this connection to happen). Change in PosColorWorldTransform.vert lines "smooth out vec4 interpColor;" and "interpColor = color;" to the correct variable name: "smooth out vec4 theColor;" and "theColor = color;".

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

No branches or pull requests

2 participants