Exemplo n.º 1
0
 def addShaderAttributes(self, shaderFunc):
     VBOSegment.addShaderAttributes(self, shaderFunc)
     if self.hasFaceCol():
         shaderFunc.addAttribute(type="vec4", name="vertexColor")
     if self.hasFaceUV():
         shaderFunc.addAttribute(type="vec2", name="vertexUV")
     if self.hasFaceNor():
         shaderFunc.addAttribute(type="vec3", name="vertexNormal")