Skip to content

Instantly share code, notes, and snippets.

@CifaCia
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CifaCia/f0b3d3cf3e65fcc912cb to your computer and use it in GitHub Desktop.
Save CifaCia/f0b3d3cf3e65fcc912cb to your computer and use it in GitHub Desktop.
#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