opengl - 4D and GLSL, are there any support for matrix 5x5? -


i want transform , project on screen 4d graphics glsl vertex shader. have matrix 5x5 , 5d vectors support or extensions it? , if not, how send 5x5 matrices , etc shader?

no, glsl has 2-, 3-, , 4-vectors , equivalent matrices (https://www.opengl.org/wiki/data_type_%28glsl%29#matrices). if want 5x5 matrices sent shader can defining structs of floats or doubles , passing them uniforms, or if need lot, share them buffer of floats , read them in groups of 25. keep in mind though you'll need implement math functions need these types yourself.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -