Commit b185fec1 authored by GERHarcos's avatar GERHarcos

troubleshooting

parent e3971c80
......@@ -4,8 +4,8 @@ layout(local_size_x = 1, local_size_y = 1) in;
//internal image format
layout(rgba32f, binding = 0) uniform image2D img_output;
vec3 ray_d = vec3(0.0, 0.0, 1.0); // ortho
vec3 sphere_c = vec3(0.0, 0.0, 10.0);
vec3 ray_d = vec3(0.0, 0.0, -1.0); // ortho
vec3 sphere_c = vec3(0.0, 0.0, -10.0);
float sphere_r = 1.0;
void main() {
......
......@@ -3,7 +3,7 @@
precision mediump float;
in lowp vec4 fColor;
in vec2 Texcoord;
in vec2 fTexCoords;
uniform sampler2D tex;
......@@ -11,5 +11,5 @@ out vec4 outColor;
void main()
{
outColor = texture(tex, Texcoord);
outColor = texture(tex, fTexCoords);
}
......@@ -2,15 +2,15 @@
layout(location = 0) in vec4 vPosition;
layout(location = 1) in vec4 vColor;
in vec2 texcoord;
in vec2 vTexCoords;
out vec4 fColor;
out vec2 Texcoord;
out vec2 fTexCoords;
void main()
{
fColor = vColor;
gl_Position = vPosition;
Texcoord = texcoord;
fTexCoords = vTexCoords;
}
B^D:\FREIBERG\MULTIMEIDA\RAYTRACING\MM_RAYTRACER\OPENGL_RAYTRACER\OPENGL_RAYTRACER\X64\DEBUG\GLAD.OBJ|D:\FREIBERG\MULTIMEIDA\RAYTRACING\MM_RAYTRACER\OPENGL_RAYTRACER\OPENGL_RAYTRACER\X64\DEBUG\GLCALLS.OBJ|D:\FREIBERG\MULTIMEIDA\RAYTRACING\MM_RAYTRACER\OPENGL_RAYTRACER\OPENGL_RAYTRACER\X64\DEBUG\OPENGL_RAYTRACER.OBJ
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment