-
-
Save CifaCia/f0b3d3cf3e65fcc912cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 | |
struct A; | |
struct B | |
{ | |
float x; | |
float y; | |
A z; | |
}; | |
struct A{ | |
float something; | |
}; | |
out vec3 fr; | |
void main(void){ | |
B a; | |
a.z.something = 1.0; | |
fr = vec3(a.z.something); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment