Bind dummy vao once during preloadRender; fix texture shader normals

This commit is contained in:
2025-11-24 12:54:57 +00:00
parent 65d7b93a32
commit f5a972d9e2
5 changed files with 3 additions and 16 deletions
+1 -1
View File
@@ -12,5 +12,5 @@ void main()
fCol = vec4(0.2,0.3,0.6,1);
//fCol = vec4(0.6,0.4,0.3,1);
fPos = vec4(vPos,1);
normal = vec4(vPos + vec3(0.5) - texture(normalSampler,2*vTexPos.xy).xyz,0);
normal = vec4(vec3(0.5) - texture(normalSampler,2*vTexPos.xy).xyz,0);
}