added more code to render my first scene; STILL WITH ERRORS
This commit is contained in:
12
opengl_beginnings/resources/shaders/sphere.frag
Normal file
12
opengl_beginnings/resources/shaders/sphere.frag
Normal file
@ -0,0 +1,12 @@
|
||||
#version 330 core
|
||||
|
||||
//in vec3 fragPos;
|
||||
//in vec3 fragNormal;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
// FragColor = vec4(fragPos, 1.0);
|
||||
FragColor = vec4(1.0, 1.0, 1.0 , 1.0);
|
||||
}
|
Reference in New Issue
Block a user