Textures in OpenTK appear black when using a shader

137 views Asked by At

I started working on a simple game engine and I'm trying to implement some 3D objects.

I have the basics, a simple test shader, but for some reason, the texture always appears as black. I rewrote everything once already, the problem is still there. I don't know what I'm doing wrong, I'm very much a beginner when it comes to graphics and OpenGL.

The running project is Game. In GameEngine there is the Mesh code, Shader and Texture2D.

Here is my GitHub repository: ChronosEngine

Edit:

Code is now fixed.

1

There are 1 answers

1
XMaster34 On

I didn't actually read your Code, but usually the issue you describe is caused by a missing light source. Try to apply some light and it might work.