add textureTransform to ObjectBase

before textures load refactoring
This commit is contained in:
2023-02-05 21:23:41 +03:00
parent 7d30802cbd
commit 7c6ca07323
39 changed files with 570 additions and 144 deletions

View File

@@ -6,7 +6,7 @@ out vec4 object_color;
void main(void) {
qgl_MaterialIndex = qgl_Material;
qgl_FragTexture = qgl_Texture;
qgl_FragTexture = qgl_getFragTexture();
gl_Position = qgl_ftransform();
geom_normal = normalize(qgl_Normal * qgl_getNormalMatrix());

View File

@@ -20,6 +20,6 @@ void main(void) {
float g = gamma / frame_max;
res /= l;
l = 1 - exp(-l*g);
res *= l;
res = max(vec3(0.f), res * l);
qgl_FragColor = vec4(res, dot(res, luma));
}