Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR ASSEMBLY

glsl uniform struct

struct TheStruct
{
  vec3 first;
  vec4 second;
  mat4x3 third;
};

uniform vec3 oneUniform;
uniform TheStruct aUniformOfArrayType;
uniform mat4 matrixArrayUniform[25];
uniform TheStruct uniformArrayOfStructs[10];
Source by www.khronos.org #
 
PREVIOUS NEXT
Tagged: #glsl #uniform #struct
ADD COMMENT
Topic
Name
1+2 =