implemented overlays and text, need depth configuration

This commit is contained in:
devZoGok
2021-10-18 19:05:04 +03:00
parent d1f2f9b152
commit 7a8a178a74
26 changed files with 544 additions and 73 deletions
+3 -1
View File
@@ -20,10 +20,12 @@ struct Light{
uniform Light light[numLights];
uniform sampler2D tex;
uniform bool lightingEnabled;
uniform bool texturingEnabled;
uniform vec4 diffuseColor;
uniform vec3 camPos;
void main(){
vec4 finalColor=texture(tex,texCoords);
vec4 finalColor=texturingEnabled?texture(tex,texCoords):diffuseColor;
if(lightingEnabled){
vec3 diffuseColor=vec3(0),specularColor;
for(int i=0;i<numLights;i++){