added a few missing lines
This commit is contained in:
@@ -186,6 +186,9 @@ GLuint WriteTexture(int textw, int texth){
|
||||
if(glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE)
|
||||
return false;
|
||||
|
||||
// Render to our framebuffer
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, FramebufferName);
|
||||
glViewport(0, 0, textw, texth);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
in vec2 UV;
|
||||
|
||||
// Ouput data
|
||||
out vec3 color;
|
||||
//out vec3 color;
|
||||
layout(location = 0) out vec3 color;
|
||||
|
||||
// Values that stay constant for the whole mesh.
|
||||
uniform sampler2D myTextureSampler;
|
||||
|
||||
Reference in New Issue
Block a user