add textureTransform to ObjectBase
before textures load refactoring
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user