Posts: 811
Threads: 80
Joined: Oct 2011
Staff roles: Coding Dev
(12-12-2015, 02:36 PM)Stuffz Wrote: So I was looking through your code a bit and have a comment about that planet shader.
You write this:
Code:
out_texcoord = vertex_position;
and don't use your incoming
Code:
in vec2 vertex_texture1;
A texcoord can never be a vertex_position (uvs only go from 0 to 1 whereas local vertex positions go from -1 to 1)
And of course uvs are only vec2s instead of vec3 like you have in your
Code:
out vec3 out_texcoord;
This might fix your bug with the textures on planets not being right.
EDIT:
Also why the hell still use openGL version 1.4?
GLSL Version 140 isn't OpenGL 1.4.
GLSL Version 140 is OpenGL 3.1 lol
Also the New Tokyo bug was an issue with Bgra5551 textures not being loaded correctly which is now fixed. I am, however, going to replace the planet rendering code entirely since I need to use quad spheres instead of iso spheres.